Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $validator = Validator::make(request()->all(),[
- 'title' => 'required',
- 'description' => 'required',
- ]);
- if(!$validator->fails() && auth()->check()){
- Project::create([
- 'title' => request('title'),
- 'description' => request('description'),
- 'owner_id'=> auth()->id()
- ]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement