Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1
Running Laraval framework-based web applications for long years 🪘
szepeviktor/running-laravel
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
🚧 list features -> orgranize them into categories, see GH issue!
ErrorDocument500 /errors/HTTP_INTERNAL_SERVER_ERROR.htmlErrorDocument503 /errors/HTTP_SERVICE_UNAVAILABLE.html# https://templates.mailchimp.com/resources/inline-css/Alias"/storage/""/home/${SITE_USER}/website/code/storage/app/public/"
mysqldump --routines --triggers --events
- SeeGitHub repository inspection
- The first commit must be a tagged release of
laravel/laravel
Startup methods.
- Web - through
public/index.php - CLI - through
artisan - Queue workers - through
artisan queue:work - Cron job - through
artisan schedule:run
- HTTP method not in routes
- HTTP 404
- CSRF token mismatch (Google Translate, Facebook app, Google Search "Cached")
- Failed login attempts
- Requests for .php files
- Non-empty hidden field in forms
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,];
UseRedis PECL extension instead of Predis,and thekey hash tag.
- Compiled classes
/bootstrap/cache/compiled.phpremoved in 5.4 - Services
/bootstrap/cache/services.php- flushed in composer scriptpost-autoload-dump - Discovered packages
/bootstrap/cache/packages.php- flushed in composer scriptpost-autoload-dump - Configuration cache
/bootstrap/cache/config.php- flushed byartisan config:clear - Routes cache
/bootstrap/cache/routes.php- flushed byartisan route:clear - Events cache
/bootstrap/cache/events.php- flushed byartisan event:clear - Application cache (
CACHE_DRIVER) - flushed byartisan cache:clear - Blade templates cache
/storage/framework/views/*.php- flushed byartisan view:clear
See/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
Caching depends onAPP_ENV variable.
routes/web.php
useIlluminate\Support\Facades\Route;useSymfony\Component\HttpKernel\Exception\NotFoundHttpException;// Throttle 404 errorsRoute::fallback(staticfunction () {thrownewNotFoundHttpException();})->middleware('throttle:10,1');
./artisan tinker --execute='printf("Application is %s.",App::isDownForMaintenance()?"down":"up");'ls storage/framework/down./artisan isdown- usingCommands/IsDownForMaintenance.php
./artisan route:check - usingCommands/RouteCheckCommand.php
Insert this line in the top ofbootstrap/app.php
if (phpversion() !=='8.2.7')dd('Different PHP version:',phpversion());
Check all four entry points!
Add the following toapp/Providers/AppServiceProvider.php
useIlluminate\Support\Facades\DB;useIlluminate\Support\Facades\Log;publicfunctionboot():void {DB::listen(staticfunction ($query) { Log::info('SQL query', [$query->sql,$query->bindings,$query->time]); }); }
- Root files - stored in
public/andpublic/.well-known/directories - Static assets - stored in various subdirectories of
public/ - User generated media - stored in
storage/app/public/directory - Virtual URL-s are handled by Laravel started in
public/index.php - Explicit API calls prefixed with
/api/in URL path
Custom exception handlinghttps://nova.laravel.com/docs/4.0/installation.html#error-reporting
About
Running Laraval framework-based web applications for long years 🪘
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.