Skip to content

Tag: laravel-5

Laravel 5.4 fopen(): Filename cannot be empty

I want to upload image in laravel 5.4 Here’s the code: in FilesystemAdapter.php (line 146) I checked the FileSystemAdapter.php and saw that the problem is in this line: When I var dump the $file variable it returns the correct info, but when I var_dump($file->getRealPath(); it says bool(false) and I …

laravel 5.4 custom command not working

This is the first time i’m working in Laravel. I’m developing a custom command which will read a file and insert rows in database. I’m getting errors. Below is my code any help will be appreciated. Command File. Model File Kernel.Php ERRORs: D:xampphtdocslara12>php artisan ship:start PHP …

Convert to Laravel exception?

Currently in a package, it has HttpException exception Is there a way to to convert it Laravel HttpResponseException uses without touching that exception from the package? Answer You can catch that exception and rethrow it. In your app/Exceptions/Handler.php file. Edit: I haven’t tested this but accordi…