Admin template build with react typescript & Laravel 10.0
- PHP 8.*+
- Composer
- MySQL 5.5+
- Redis
- Laravel
- redis
- file info
- install package composer
composer install
- install package npm
npm install
- install panel
php artisan install
location /public {
}
location / {
try_files $uri $uri/ /index.php$is_args$query_string;
}
location ~ .*\.(js|css)?$
{
expires 1h;
error_log off;
access_log /dev/null;
}
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]
RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
RewriteRule ^(.*)$ public/$1
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ server.php
</IfModule>
- open terminal and type
php artisan server
npm run watch
npm run prod
php /**path_to_dir_web**/artisan queue:work
php /**path_to_dir_web**/artisan schedule:run