app/Http/Controllers/ProductFilesController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create($productID)
    {
        if(auth()->user()->isAdmin())
            return view('pages.product_files.create')->with('productID', $productID);
        else abort(404);
    }
public function create ( $ productID ) { if ( auth ( ) -> user ( ) -> isAdmin ( ) ) return view ( 'pages.product_files.create' ) -> with ( 'productID' , $ productID ) ; else abort ( 404 ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .