app/Http/Controllers/ProductController.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()
    {
        $cat = Category::where('active',1)->pluck('name','id');
        $bra = Branch::pluck('name','id');
        return view('admin.products.create',compact('cat','bra'));
    }
public function create ( ) { $ cat = Category :: where ( 'active' , 1 ) -> pluck ( 'name' , 'id' ) ; $ bra = Branch :: pluck ( 'name' , 'id' ) ; return view ( 'admin.products.create' , compact ( 'cat' , 'bra' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .