1
How do I get the logged-in user id and insert it into the table along with Description and title? I imagine it’s pretty simple.
public function saveCallRegister()
{
$title = Request()->input('title');
$description = Request()->input('description');
DB::insert('INSERT INTO feeds (title, description) VALUES (?, ?)', array($description, $title));
return redirect()->action('HomeController@index');
}