Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Argument 1 passed to DoctrineInflectorInflector::singularize() must be of the type string, null given,

In lfmhelpers.php line 335 replace the return with this:

return lcfirst(str_singular(request('type') ? request('type') : '')) === 'image';

and in vendor/unisharp/laravel-filemanager/src/views/index.blade.php line 209 
replace with this:

acceptedFiles: "{{ lcfirst(str_singular(request('type') ? request('type') : '')) == 'image' ? implode(',', config('lfm.valid_image_mimetypes')) : implode(',', config('lfm.valid_file_mimetypes')) }}",
maxFilesize: ({{ lcfirst(str_singular(request('type') ? request('type') : '')) == 'image' ? config('lfm.max_image_size') : config('lfm.max_file_size') }} / 1000)

Hope this helps, it works in mine.
Comment

PREVIOUS NEXT
Code Example
Php :: plesk change php version 
Php :: php connect 
Php :: laravel resourece type 
Php :: laravel route where not contain 
Php :: laravel relationship hasmany 
Php :: Stripe Test - Laravel 
Php :: how to insert last id from crud grocery codeigniter 
Php :: nl_langinfo — Query language and locale information 
Php :: Donut chart in PHP 
Php :: verifier la version de php sur mon ordi 
Php :: how to superscript th in php date 
Php :: wordpress curl wp remote post timeout error 
Php :: laravel eloquent query with orderBy subquery 
Php :: laravel Error: Unsupported operand types: IlluminateDatabaseEloquentCollection - int 
Php :: laravel ailed: WebSocket opening handshake was canceled 
Php :: default password when you make users in laravel 
Php :: find_by model fuelphp 
Php :: symfony user online 
Php :: Only Show Specific Countries In Caldera Forms Phone Field 
Php :: multidimensional session-array 
Php :: File: C:xampphtdocsmarvellogistikapplicationlibrariesProfiler.php Line: 386 Function: sendDataInHeaders 
Php :: php refresh_ttl 
Php :: beanstalk run laravel command 
Php :: eloquent search from child table column 
Php :: undefined variable require_once 
Php :: woo show Cross-Sells 
Php :: merge three array in php 
Php :: get auth guard user laravel 
Php :: PHP SimpleXML - Get Node Values 
Php :: function() use() php clousure examples 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =