app/Http/Controllers/UserController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\User $user
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(int $user)
    {
        try {
            User::where('id', $user)->delete();
            return redirect('user/list')
                ->with('status', trans('user.delete_user'));
        } catch (\Exception $e) {
            return redirect('user/list')->with('status', trans('user.error_delete_user'));
        }
    }
public function destroy ( int $ user ) { try { User :: where ( 'id' , $ user ) -> delete ( ) ; return redirect ( 'user/list' ) -> with ( 'status' , trans ( 'user.delete_user' ) ) ; } catch ( \ Exception $ e ) { return redirect ( 'user/list' ) -> with ( 'status' , trans ( 'user.error_delete_user' ) ) ; } }
Remove the specified resource from storage.
Remove the specified resource from storage .