How to get last inserted Id using Laravel 5 and store in a single variable?
Get last inserted records from the database use Eloquent method in Laravel 5. You can try this code:
<?php $sql=MyModel::->orderBy('id','desc')->take(1)->get();
Username
Password
Remember Me
Lost your password?
Username or E-mail:
Log in