Read CSV File

Don’t use phpspreadsheet to read .csv file because there could be some bugs and get incorrect result.

Reference:

  1. https://www.php.net/manual/zh/function.fgetcsv

PHP to handle 0 zero value

 

Order Box Layout in Modal

HTML

SCSS

 

iCheck

Official

https://github.com/fronteed/icheck

HTML

 

Append Params to Current URL

Laravel:

https://stackoverflow.com/questions/54762882/how-to-add-extra-parameter-with-full-url-in-laravel-blade

UserC for Laravel-Permission

Example

 

RoleC for Laravel-Permission

Example

 

There is no role with id `123` Issue

With laravel-permission package, if you wanna delete a role and the role name is “123”, it seems the package will find it by ID automatically because it’s numerical.

Solution:

Change name from “123” to “v123”, etc.