lastinsertid -> get the last inset id in eloquent

 In Laravel's Eloquent ORM, you can retrieve the last inserted ID using the lastInsertId() method. Here's how you can use it:

No comments:

Post a Comment

How to host application on server new way

 copy the htacess from public to root copy the server.php from public to root but rename to index.php htacess <IfModule mod_rewrite.c>...