app/Http/Controllers/Admin/ClientsController.php
/**
     * Show the form for creating new Client.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating new Client.
@return \Illuminate\Http\Response
Show the form for creating new Client . @return \ Illuminate \ Http \ Response
public function create()
    {
        if (! Gate::allows('client_create')) {
            return abort(401);
        }
        $categories = \App\ProductCategory::get()->pluck('name', 'id')->prepend(trans('quickadmin.qa_please_select'), '');
        $photos = \App\Product::get()->pluck('photo1', 'id');
        return view('admin.clients.create', compact('categories', 'photos'));
    }
public function create ( ) { if ( ! Gate :: allows ( 'client_create' ) ) { return abort ( 401 ) ; } $ categories = \ App \ ProductCategory :: get ( ) -> pluck ( 'name' , 'id' ) -> prepend ( trans ( 'quickadmin.qa_please_select' ) , '' ) ; $ photos = \ App \ Product :: get ( ) -> pluck ( 'photo1' , 'id' ) ; return view ( 'admin.clients.create' , compact ( 'categories' , 'photos' ) ) ; }
Show the form for creating new Client.
Show the form for creating new Client .