All categories
Add new FAQ
Add question
Open questions
Login
Sign up
Login
Search
Advanced search
Content in Laravel
Page
1
out of
6
Pages
In Laravel, how can I obtain a list of all files in a public folder?
array_filter(Storage::disk('local')->files(), function ($item) { //only png's return strpos($item, '.png'); });More information: https://stackoverflow.com/questions/31316543/in-laravel-how-can-i-obtain-a-list-of-all-files-in-a-public-folder
1077 views
Laravel - display a PDF file in storage without forcing download?
2165 views
Expected response code "250/251/252" but got code "550", with message "550 5.7.1 Relaying denied". Laravel 9
2265 views
Laravel : Syntax error or access violation: 1055 Error
\DB::statement("SET SQL_MODE=''");//this is the trick use it just before your query or In config\database.php --> "mysql" array Set 'strict' => false to disable
2340 views
Laravel: Use Email and Name in Mail::to
Mail::send($view, $data, function($message) use ($email, $name) { $m->to($email, $name); $m->from('youremail@example.com', 'Your Name'); $m->subject('Hi there'); })Read more...
2627 views
Your Composer dependencies require a PHP version ">= 8.1.0"
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". run this command and see what
2445 views
Laravel the requested url was not found on this server
sudo nano /etc/apache2/sites-available/000-default.conf<Directory /var/www/html/public/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>sudo a2enmod rewrite apache - laravel the requested url was
2414 views
Laravel the requested url was not found on this server
sudo nano /etc/apache2/apache2.conf Find the following code inside the editor: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> Change
2470 views
The stream or file "/var/www/html/laravel/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied
chown -R www-data:www-data /var/www/html/laravel
1190 views
Laravel Carbon date diffInDays() on string error
$start=Carbon::parse($a->date); $end=Carbon::parse($c->dt); $days=$start->diffInDays($end);
2377 views
1
2
3
4
5
6
→
⇥
PHP
Laravel
Subcategories