Skip to content

Instantly share code, notes, and snippets.

View dugjohnson's full-sized avatar

Doug Johnson dugjohnson

View GitHub Profile
//Code in EntryController
public function addEntry(Request $request)
{
$id = Auth::user()->id;
// redirect
$entry = new Entry();
$entry->published = $request->published;
$entry->user_id = $id;
$entry->author = $request->author;
$entry->title = $request->title;