NestedTree Notes

Wiki:

https://en.wikipedia.org/wiki/Nested_set_model

Update nest_left and nest_right values of all nodes:

Notes:

  • In October CMS, a category must have nest_left and nest_right values or it will cause serious error.

Request Validation

Doc:

https://laravel.com/docs/5.4/validation#creating-form-requests

Command:

Example:

 

 

Get Long-Lived (Long Term) Access Token

Official Example Code:

https://developers.facebook.com/docs/php/howto/example_facebook_login

 

Laravel Translate Model (dimsav/laravel-translatable)

Official Doc

https://github.com/dimsav/laravel-translatable#tutorials

Schema

Main table: store_menu, translated table: store_menu_translations

Full example:

How to Add Multi-Language Models to Laravel QuickAdminPanel

Controller to save data

TranslateM

 

Ajax Response Trait