app/Http/Controllers/Panel/CategoriesController.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()
    {
        $p = Promotion::all(['id', 'title']);
        return view('panel.categories.create')->with(['promotion' => $p]);
    }
public function create ( ) { $ p = Promotion :: all ( [ 'id' , 'title' ] ) ; return view ( 'panel.categories.create' ) -> with ( [ 'promotion' => $ p ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .