Overview

Namespaces

  • App
    • Http
      • Controllers
        • Auth
      • Middleware
  • PHP

Classes

  • AdController
  • ApiController
  • CommentController
  • Controller
  • EmergencyController
  • NewspaperController
  • RouteController
  • TaxiController
  • UserController
  • Overview
  • Namespace
  • Class
  • Tree

Class NewspaperController

Illuminate\Routing\Controller
Extended by App\Http\Controllers\Controller uses Illuminate\Foundation\Auth\Access\AuthorizesRequests (not available) Illuminate\Foundation\Bus\DispatchesJobs (not available) Illuminate\Foundation\Validation\ValidatesRequests (not available)
Extended by App\Http\Controllers\NewspaperController
Namespace: App\Http\Controllers
Located at app/Http/Controllers/NewspaperController.php
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

$request

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

$request

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

$request
$id

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
APIv1 API documentation generated by ApiGen