Created
March 25, 2017 17:40
-
-
Save event15/f68d0330b6a7579774308dbf0286a66e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function store(Request $request) | |
{ | |
$this->validate($request, [ | |
'name' => 'required', | |
]); | |
$request->user()->projects()->create([ | |
'name' => strip_tags($request->input('name')), | |
]); | |
return redirect('/projects'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment