取得route中設定的網址參數

Route

Controller

 

Escape Like

Helper

Reference:

Datatable with Row Details (Child Row)

Example:

https://datatables.net/examples/api/row_details.html

Data Format (with column name)

https://datatables.net/examples/ajax/data/objects.txt

Columns Config:

https://datatables.net/reference/option/columns

JS example:

 

laravel-permission

Official

https://github.com/spatie/laravel-permission

Doc

https://docs.spatie.be/laravel-permission/v3/basic-usage/role-permissions/

Model User

Config “Super Admin” in AuthServiceProvider.php

Controller and related functions

Add useful function in model User

 

 

Disable CSRF check for some route (page)

Reference:

Filter and Redirect Middleware

Middleware

Kernel

Route:

 

logg