It's great, fast and useful ways I found in this wonderful article https://ashallendesign.co.uk/blog/6-quick-and-easy-ways-to-speed-up-your-laravel-websiteto help you make your project as fast as possible. Only fetch the fields you need in your database queries $users = User::all(); foreach($users as $user) { // Do something here } // Now $users = User::select([‘id’, ‘first_name’, ‘last_name’])->get(); foreach($users as $user) { // Do something here }

php artisan route:cache php artisan route:clear php artisan config:cache php artisan config:clear // Caching queries and values $users = DB::table('users')->get(); $users = Cache::remember('users', 120, function () { return DB::table('users')->get(); }); Use the latest version of PHP
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners