Skip to content
Advertisement

Tag: laravel-blade

Nested Loop in Edit Form Blade Laravel

I have an edit form that used rowspan table and nested loop. I also have a create data form that works fine like this. I used Laravel 8 for this project. Create form But when I’m adding the value from database to create the edit form: Edit form -1 Edit Form -2 I get the sasaran, indikator, and data (questions)

Laravel: getting blade components syntax error, unexpected ‘endif’ (T_ENDIF), expecting end of file

I am learning laravel on Laracast however I am having some issues I have this code on file components/layout.blade.php And this on main.blade.php which is the page the view redirects to For some reason Laravel is returning this error: Answer I found what was causing the problem, I had a space between content and =”Hello There” by removing it and

Data not passed correctly from Laravel controller to blade view **ONLY IN PRODUCTION**

I have recently encountered a problem with my Laravel application when deployed to Heroku. Just to note, this has been working just fine in production until very recently. The above snippets still work as intended in dev using Laravel Valet; However, in production, the $isFollowing variable is always returned to the view as bool(false) regardless of whether the data shows

Undefined property: IlluminateDatabaseMySqlConnection::$Id

I was trying to pass a parameter from my database to my view. Controller Route Blade/View And from PHPMyAdmin, we can see a table named statisticforteacher, and each column name is also right. However, I still get the following error. ErrorException Undefined property: IlluminateDatabaseMySqlConnection::$Id Answer Here $data return query builder instance so you have to return collection in order to

Advertisement