Methods summary
public
mixed
|
#
showNews( )
Returns
mixed Grabs all newspapers from the database and passes them along when making the view.
Author
Stefano Groenland
|
public
mixed
|
#
showNewsAdd( )
Returns
mixed Makes the 'nieuwstoevoegen' view.
Author
Stefano Groenland
|
public
mixed
|
#
showNewsEdit( )
Returns
mixed Grabs the route parameter ID, Looks for a news row with that ID and passes them along,
when making the 'nieuwswijzigen view'
Author
Stefano Groenland
|
public
|
#
addNews( Illuminate\Http\Request $request )
Parameters
Returns
$this|\Illuminate\Http\RedirectResponse
Gets values from the $request, validates the input on specific rules.
If all passes it will Create a row for a news group with with the rss feed link and a name.
Author
Stefano Groenland
|
public
|
#
editNews( Illuminate\Http\Request $request )
Parameters
Returns
$this|\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
Gets the ID of the route parameter, and grabs all information for a news row with that ID,
aswell as getting data from the $request and changes the linked row with the values of the requests after validation.
Author
Stefano Groenland
|
public
Illuminate\Http\RedirectResponse
|
#
deleteNews( )
Returns
Illuminate\Http\RedirectResponse Grabs the ID of the route, And deletes the corresponding row from the Database.
Author
Stefano Groenland
|
public
Illuminate\Http\RedirectResponse|Illuminate\Routing\Redirector
|
#
upload( Illuminate\Http\Request $request, $id )
Parameters
Returns
Illuminate\Http\RedirectResponse|Illuminate\Routing\Redirector Grabs the file named 'logo' from the request and uploads it onto the server,
It updates the corresponding newspaper with the link to the uploaded picture as their logo in the Newspaper table.
Authors
Stefano Groenland
|