Monthly Archives: May 2019

Guzzle usages

Basic

Get raw response

Example:

 

Reference:

Select a File (MP4) in Laravel Filemanager

By default, it will download the file when you click on the file. You have to revise a view file to replace onclick listener with “useFile”.

/vendor/unisharp/laravel-filemanager/src/views/grid-view.blade.php

Mysql (MariaDB) force table name to lower case when create table

Stop Mysql service

  • run services.msc to open windows service manager
  • Stop MySQL service

Update my.ini (C:\Program Files\MariaDB 10.3\data\my.ini)

Add lower_case_table_names = 2

Start MySQL

  • Stop MySQL service

Reference:

Upload File to S3 using Laravel

Local file

Other related helper functions

 

Custom Usage of Laravel Filemanager

HTML

Javascript (lfm_app.js):

Model to handle Image