Running Laraval framework-based web applications for long years 🪘
list features -> orgranize them into categories, see GH issue!
ErrorDocument 500 /errors/HTTP_INTERNAL_SERVER_ERROR.html ErrorDocument 503 /errors/HTTP_SERVICE_UNAVAILABLE.html https://templates.mailchimp.com/resources/inline-css/
mysqldump --routines --triggers --events
laravel/laravel
Startup methods.
public/index.php
artisan
artisan queue:work
artisan schedule:run
protected $securityExceptions = [
\Illuminate\Session\TokenMismatchException::class,
\Illuminate\Validation\ValidationException::class,
\Illuminate\Auth\Access\AuthorizationException::class,
\Illuminate\Database\Eloquent\ModelNotFoundException::class,
\Symfony\Component\HttpKernel\Exception\HttpException::class,
\Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class,
];
Use Redis PECL extension instead of Predis, and the key hash tag.
/bootstrap/cache/compiled.php
/bootstrap/cache/services.php
- flushed in composer script post-autoload-dump
/bootstrap/cache/packages.php
- flushed in composer script post-autoload-dump
/bootstrap/cache/config.php
- flushed by artisan config:clear
/bootstrap/cache/routes.php
- flushed by artisan route:clear
/bootstrap/cache/events.php
- flushed by artisan event:clear
CACHE_DRIVER
) - flushed by artisan cache:clear
/storage/framework/views/*.php
- flushed by artisan view:clear
See /vendor/laravel/framework/src/Illuminate/Foundation/Application.php
Caching depends on APP_ENV
variable.
routes/web.php
use Illuminate\Support\Facades\Route;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
// Throttle 404 errors
Route::fallback(static function () {
throw new NotFoundHttpException();
})->middleware('throttle:10,1');
./artisan tinker --execute='printf("Application is %s.",App::isDownForMaintenance()?"down":"up");'
ls storage/framework/down
./artisan isdown
- using Commands/IsDownForMaintenance.php
./artisan route:check
- using Commands/RouteCheckCommand.php
Insert this line in the top of bootstrap/app.php
if (phpversion() !== '8.2.7') dd('Different PHP version:', phpversion());
Check all four entry points!
Add the following to app/Providers/AppServiceProvider.php
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
public function boot(): void
{
DB::listen(static function ($query) {
Log::info('SQL query', [$query->sql, $query->bindings, $query->time]);
});
}
public/
and public/.well-known/
directoriespublic/
storage/app/public/
directorypublic/index.php
/api/
in URL pathCustom exception handling https://nova.laravel.com/docs/4.0/installation.html#error-reporting