app/Http/Controllers/Admin/RoleController.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)
    {
        $role = Role::create([
            'role_name' => $request->get('role_name'),
            'role_slug' => $request->get('role_slug')
        ]);
        Flash::success('The role "' . $role->role_name . '" was successfully created.');
        return back();
    }
public function store ( Request $ request ) { $ role = Role :: create ( [ 'role_name' => $ request -> get ( 'role_name' ) , 'role_slug' => $ request -> get ( 'role_slug' ) ] ) ; Flash :: success ( 'The role "' . $ role -> role_name . '" was successfully created.' ) ; return back ( ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .