If the data already inserted to database, i usually use: $lastId = User::latest()->first()->id...
You can get last inserted id if the table has auto-increment id. Something like this $id = User::ins...
please make sure the route exists, you can check list of all routes using this command: $ php artisa...
Maybe you can use custom laravel exception handler app/Exception/Handler.php. Something like this:...
The Laravel portal for problem solving, knowledge sharing and community building.
The community