app/Http/Controllers/Front/CampaignController.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 = Category::orderBy('name')->get()->pluck('name', 'id');
        return view('front.campaign.index', compact('category'));
    }
public function create ( ) { $ category = Category :: orderBy ( 'name' ) -> get ( ) -> pluck ( 'name' , 'id' ) ; return view ( 'front.campaign.index' , compact ( 'category' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .