Overview

Namespaces

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

Classes

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

Class CommentController

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\CommentController
Namespace: App\Http\Controllers
Located at app/Http/Controllers/CommentController.php
Methods summary
public mixed
# showComment( )

Returns

mixed
Gets 2 objects from the databases and passes them along with the view when making the view.

Author

Stefano Groenland
public mixed
# showCommentsApproved( )

Returns

mixed
Gets all comments where column 'approved' = 1.

Author

Stefano Groenland
public mixed
# showCommentEdit( )

Returns

mixed

Grabs the route parameter ID, Looks for a comment row with that ID and passes them along, when making the 'opmerkingwijzigen view'

Author

Stefano Groenland
public
# editComment( 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 comment 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|Illuminate\Routing\Redirector
# togglesStateComment( )

Returns

Illuminate\Http\RedirectResponse|Illuminate\Routing\Redirector

Looks for a row with the passed ID , upon finding it checks what the 'approved' value is, when it's not approved it will be set to approved, and if it's approved it will be set to not approved.

Author

Stefano Groenland
public Illuminate\Http\RedirectResponse
# deleteComment( )

Returns

Illuminate\Http\RedirectResponse
Grabs the ID of the route, And deletes the corresponding row from the Database.

Author

Stefano Groenland
APIv1 API documentation generated by ApiGen