Created
July 15, 2020 17:18
-
-
Save parzibyte/066e9f831bdc1d708400944ccc6863bc 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
<?php | |
/** | |
* Store a newly created resource in storage. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @return \Illuminate\Http\Response | |
*/ | |
public function store(Request $request) | |
{ | |
(new Product($request->input()))->saveOrFail(); | |
return redirect()->route("products.index")->with("message", __("messages.product_created")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment