app/Http/Controllers/CustomerController.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()
    {
        $category = DB::table('categories')->pluck('name', 'id');
        return view('customers.create',compact('category'));
    }
public function create ( ) { $ category = DB :: table ( 'categories' ) -> pluck ( 'name' , 'id' ) ; return view ( 'customers.create' , compact ( 'category' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .