Category Archives: Laravel

Jquery Repeater

Github:

https://github.com/DubFriend/jquery.repeater

Javascript

HTML

 

Black list to hide .env values from debug mode

Append this array to config/app.php

 

Upload Multiple Images

HTML

Laravel:

 

Response with UTF-8 format without Encode Chinese Chars

Example

Reference:

Laravel Mail Bugs

  1. Some variable failed to pass to Mailable objects for unknown reason.
    Laravel 6.x seems to fix this issue.
  2. url() helper will use APP_URL in .env. url() won’t use this in controllers.

Datatable Complete Example

Controller

Model

Javascript (index.js)

AjaxResponse Trait

 

Set Different Root for Users (ResponsiveFilemanager)

The key is

https://www.responsivefilemanager.com/#documentation-section

But in Laravel , you can’t use $_SESSION, so need to change dialog.php of responsivefilemanager

Bug

If users have different permission (root folder), change account could cause error.
Line #150~ shoud be modified.

 

Laravel custom authentication

Query user by credential

 

Reference: