app/Http/Controllers/__Old__/__PermissionController.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(CreatePermissionRequest $request)
    {
        $permission = new Permission();
            $permission->name = $request->input('name');
            $permission->display_name = $request->input('display_name');
            $permission->description = $request->input('description');
        $permission->save();
        return redirect()->route('permissions.index')
                         ->with('success','Permission created successfully');
    }
public function store ( CreatePermissionRequest $ request ) { $ permission = new Permission ( ) ; $ permission -> name = $ request -> input ( 'name' ) ; $ permission -> display_name = $ request -> input ( 'display_name' ) ; $ permission -> description = $ request -> input ( 'description' ) ; $ permission -> save ( ) ; return redirect ( ) -> route ( 'permissions.index' ) -> with ( 'success' , 'Permission created successfully' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .