Support the ongoing development of Laravel.io →

David Adi Nugroho

Joined 4 Apr 2020
https://lakuapik.github.io

Statistics

Threads 0
Replies 4
Solutions 0
Articles 0

lakuapik has not posted any threads yet

replied 4 years ago

how to get last inserted id in laravel 6?

If the data already inserted to database, i usually use: $lastId = User::latest()->first()->id...

0 Likes
replied 4 years ago

how to get last inserted id in laravel 6?

You can get last inserted id if the table has auto-increment id. Something like this $id = User::ins...

0 Likes
replied 4 years ago

Laravel API routes - Same path, multiple methods

please make sure the route exists, you can check list of all routes using this command: $ php artisa...

0 Likes
replied 4 years ago

How to disable function arguments logging in stack trace?

Maybe you can use custom laravel exception handler app/Exception/Handler.php. Something like this:...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.