Laravel-Challenge-Route-Model-Binding
Laravel-Challenge-Route-Model-Binding copied to clipboard
Fix Task1 , Task2 and Task 3 challenge.
Task 1 : The problem was missing missing namspace for transaction show.
Target class [App\Http\Controllers\Transaction] does not exist.
Task 2 : Fixed by adding global transaction namespace for all resource actions.
Task2: The problem was Attempt to read property "name" on null (View: /resources/views/transactions/export.blade.php)
Task2: Fixed by removing trailing s in the routes/web , export action.
Task 3: The problem was showing the incorrect transaction ORshwoing the page "404 Not Found". Task 3: Fixed by spacifying the Route Model Binding column to check transaction mode.