I am following this article https://itsolutionstuff.com/post/laravel-5-ajax-crud-with-pagination-example-and-demo-from-scratchexample.html
It's been very helpful. Thank you for the tutorial. However, I want to get current user id and save the id to the database. How can I do it?
Thank you in advance :D
Sure you can get current login user id using auth(). You can get user id in your controller this way:
$userId = auth()->user()->id;
Let me know if it is work.