Skip to content

Tag: laravel

How do i debug my php code inside my html?

I’m using Laravel for my project. I wrote some PHP code inside HTML which basically under my .blade.php file. I’m trying to debug variable $highestRow inside tbody tag. I tried var_dump($highestRow) but my controller is just passing over the breakpoint. I’m looking for some x_debug() thing t…

Laravel Task Scheduler always failed

Task Scheduler with call method always fail when I add onFailure callback Basic test: I’m wrong somewhere or missing something ? Thanks in advance Answer UPDATE: I submitted a PR to fix this in the Laravel framework and it was just merged. Looks like this will work in Laravel 8 (due to be released next …

Laravel 7 relationship query data not working

I would like to query companies name through employees. Why didnt get any result? It not give any error. Companies model Employees model Employees controller Where i like to query This is the migrations for tables Answer please provide the foreign key to your relation … this relation means that the empl…