app/Http/Controllers/AdminCategoryController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request) {
        if ($request->name != "") {
            Category::create($request->all());
        }
        return back();
    }
public function store ( Request $ request ) { if ( $ request -> name != " " ) { Category :: create ( $ request -> all ( ) ) ; } return back ( ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .