Methods summary
public
mixed
|
#
showIndex( )
Returns
mixed Makes the index view.
Author
Stefano Groenland
|
public
mixed
|
#
showProfile( )
Returns
mixed Makes the profile view and passes a variable of comments with it.
Author
Stefano Groenland
|
public
mixed
|
#
showProfileEdit( )
Returns
mixed Grabs the ID of the current user, looks for a user with that ID, and returns the id and making the View.
Author
Richard Perdaan
|
public
mixed
|
#
showDrivers( )
Returns
mixed Makes the drivers overview view and passes a series of variables with it.
Author
Stefano Groenland
|
public
mixed
|
#
showDriversEdit( )
Returns
mixed Gets the id of the corresponding driver to define which driver will be shown in the view,
and defines a series of 2 other variables to show the car count available and all cars.
Author
Richard Perdaan
|
public
mixed
|
#
showDriversAdd( )
Returns
mixed Gets all cars and passes them along with the view so a new driver can be assigned to a available car.
Author
Richard Perdaan
|
public
mixed
|
#
showTablet( )
Returns
mixed Gets all the tablets which are linked to a taxi and passes them along when making the view.
Author
Stefano Groenland
|
public
mixed
|
#
showTabletAdd( )
Returns
mixed TODO : fill in func description
Author
Stefano Groenland
|
public
mixed
|
#
showTabletEdit( )
Returns
mixed TODO : fill in func description
Author
Stefano Groenland
|
public
mixed
|
#
showAdmin( )
Returns
mixed Grabs all users with the user rank 'admin' out the database and passes them when making the view.
Author
Stefano Groenland
|
public
mixed
|
#
showAdminEdit( )
Returns
mixed Grabs the ID of the current route, looks for a user with that ID, and returns both the id and the User found along while making the View.
Author
Stefano Groenland
|
public
mixed
|
#
editAdmin( Illuminate\Http\Request $request )
Returns
mixed Uses the route parameter to define which user has to be edited,
Gets all inputs filled in and checks them for validation. If all passed correctly the User gets updated.
Author
Stefano Groenland
|
public
Illuminate\Http\RedirectResponse
|
#
deleteAdmin( )
Returns
Illuminate\Http\RedirectResponse Uses the route parameter to define which corresponding user is selected,
then deletes the user from the database. It even deletes their profile picture from the server!
Author
Stefano Groenland
|
public
mixed
|
#
showAdminAdd( )
Returns
mixed Makes the view for showing the form for adding a new admin user.
Author
Stefano Groenland
|
public
Illuminate\Http\RedirectResponse
|
#
addAdmin( Illuminate\Http\Request $request )
Parameters
Returns
Illuminate\Http\RedirectResponse Uses the request parameter to define all inputs ,
checks all inputs passed if they are filled in correctly and then makes the User.
Author
Stefano Groenland
|
public
Illuminate\Http\RedirectResponse
|
#
addDriver( Illuminate\Http\Request $request )
Parameters
Returns
Illuminate\Http\RedirectResponse Uses the request parameter to define all inputs ,
checks all inputs passed if they are filled in correctly and then makes the Driver with linked user details.
Author
Richard Perdaan
|
public
Illuminate\Http\RedirectResponse
|
#
deleteDriver( )
Returns
Illuminate\Http\RedirectResponse Uses the route parameter to define which corresponding driver is selected,
then deletes the driver and linked user account from the database.
Author
Richard Perdaan
|
public
Illuminate\Http\RedirectResponse|Illuminate\Routing\Redirector
|
#
editDriver( Illuminate\Http\Request $request )
Parameters
Returns
Illuminate\Http\RedirectResponse|Illuminate\Routing\Redirector Uses the route parameter to define which driver has to be edited,
Gets all inputs filled in and checks them for validation. If all passed correctly the Driver gets updated.
Author
Richard Perdaan
|
public
Illuminate\Http\RedirectResponse|Illuminate\Routing\Redirector
|
#
upload( Illuminate\Http\Request $request, $id, $redirect = 0 )
Parameters
Returns
Illuminate\Http\RedirectResponse|Illuminate\Routing\Redirector Grabs the file named 'profile_photo' from the request and uploads it onto the server,
It updates the corresponding user with the link to the uploaded picture as their profile_photo in the User table.
Authors
Stefano Groenland, Richard Perdaan
|
public
Illuminate\Http\RedirectResponse
|
#
addTablet( Illuminate\Http\Request $request )
Parameters
Returns
Illuminate\Http\RedirectResponse Gets values from the $request, validates the input on specific rules.
If all passes it will Create an Tablet account with a link of the tablet and taxi.
Author
Stefano Groenland
|
public
Illuminate\Http\RedirectResponse|Illuminate\Routing\Redirector
|
#
editTablet( Illuminate\Http\Request $request )
Parameters
Returns
Illuminate\Http\RedirectResponse|Illuminate\Routing\Redirector Gets the ID of the route parameter, and grabs all information for a tablet with that id,
aswell as getting data from the $request and changes the linked rows with the values of the requests after validation.
Author
Stefano Groenland
|
public
Illuminate\Http\RedirectResponse
|
#
deleteTablet( )
Returns
Illuminate\Http\RedirectResponse Grabs the ID of the route, And deletes the corresponding rows from the Database.
Author
Stefano Groenland
|
public
|
#
editProfile( Illuminate\Http\Request $request )
Parameters
Returns
$this|\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
Grabs the ID from the route, looks for an user with the given ID and edits it with the requests values if they passes the validation.
Author
Stefano Groenland
|
public
|
#
editPassword( Illuminate\Http\Request $request )
Parameters
Returns
$this|\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
Grabs the ID from the route, checks if the given values are validated and changes the users password if they do.
Author
Stefano Groenland
|
public
Illuminate\Http\RedirectResponse|Illuminate\Routing\Redirector
|
#
editProfilePhoto( Illuminate\Http\Request $request )
Parameters
Returns
Illuminate\Http\RedirectResponse|Illuminate\Routing\Redirector Grabs the ID of the route, looks for the useracount with the given ID and changes the profile picture of it.
It also deletes the past profile picture with the unlink() function.
Author
Stefano Groenland
|