app/Http/Controllers/UserController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Employee  $employee
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function delete(User $user)
    {
        if ($user -> delete()){
            return redirect('users')->withMessage('User deleted');
        }
        return redirect('users')->withMessage('Error while deleting');
    }
public function delete ( User $ user ) { if ( $ user -> delete ( ) ) { return redirect ( 'users' ) -> withMessage ( 'User deleted' ) ; } return redirect ( 'users' ) -> withMessage ( 'Error while deleting' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .