Answers for "laravel direct access to public file"

PHP
0

laravel project htaccess redirect to public path

//In your Root directory create a file .htaccess and write it

RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
Posted by: Guest on May-08-2021
0

public_path laravel

echo base_path() . "\n";
echo app_path() . "\n";
echo public_path() . "\n";
echo storage_path() . "\n";
Posted by: Guest on October-17-2021

Code answers related to "laravel direct access to public file"

Browse Popular Code Answers by Language