Commit fb80620a by Francisco Salazar

product resource

parent eb4aed33
......@@ -46,7 +46,7 @@ class AdminProductController extends Controller
{
$product = new Product($request->all());
\Auth::user()->products()->save($product);
\Auth::user()->products_resource()->save($product);
if (isset($request->cover)) {
$file = $request->file('cover');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment