Wanna test your Laravel skills on a more senior level?
Here's a challenge: simulate a COMPLEX scenario with queued jobs and 3rd party providers.
A few examples.
SCENARIO 1.
Sending a monthly invoice to 10k customers.
Challenge 1: the invoice PDF takes 2-3 seconds to build, which alone would take 8 hours for 10k customers. How to make it faster? What server resources to use? How to queue the operations so none would fail? How to even check if any of PDFs were not built successfully?
Challenge 2: sending 10k emails with invoice attachments, without missing any of them and without reaching API limits of email provider.
Challenge 3: what happens in case of email API failure on the email no.1327? Retries, graceful handling of failure, ensuring that ALL customers receive invoices as soon as possible on the same day.
-----
SCENARIO 2.
E-learning platform video processing
You need to process 10,000 newly uploaded video lectures.
Each video requires:
- Transcoding to multiple formats (720p, 1080p, mobile)
- Generating thumbnails at 10-second intervals
- Running through AI for content moderation
- Creating subtitles in 3 languages via OpenAI Whisper
- Uploading to CDN with fallback providers
Challenges: Implement rate limiting for external APIs, handle provider outages gracefully, and ensure all operations are idempotent.
-----
In all those scenarios, you're dealing with these goals:
- Optimizing resources/speed of queued operations
- Also optimizing the cost of external APIs
- All while the main application is up and running, with no downtime
4 useful Terminal commands for Laravel developers.
========
1. "grep"
Example: Search for `dd(` in the project files.
```
grep -r "dd(" app/
```
========
2. "find" + "grep"
Example: find all PHP files with `hasMany` inside
```
find . -name '*.php' -exec grep -i 'hasMany' {} +
```
========
3. "alias"
Assign the most commonly executed command to a shorter alias.
```
alias art="php artisan"
art inspire
```
========
4. "tail" with "-n"
See only last 20 lines of the log:
```
tail -n 20 storage/logs/laravel.log
```
========
Anything else you would add to this list?
In the next few weeks we'll be kicking off work on new Laravel starter kits. Here's what I'm thinking...
I don't think the starter kits should be packages. Instead, I think they should just be GitHub repositories you clone. All of the code lives in your application, no "install" commands or copying files around. Just clone a starter kit and start building. 🔨
Think something like "laravel/simple-starter-kit" and "laravel/saas-starter-kit"... and maybe more in the future? "laravel/api-starter-kit"... "laravel/ai-starter-kit"? Easy to inspect what is included, easy to accept community contributions. 👍
Thinking the simple starter kit would be the equivalent of today's Laravel Breeze. Basic registration, authentication, password reset, profile management.
The SaaS starter kit would include all of that, teams, Stripe Checkout integration with Cashier, and more. 💰
Both totally free and open source. Livewire and Inertia 2.0 flavors. Tailwind 4. Maybe something like @shadcn for the Inertia variant?
What do you think?
I said I wanted to write five open source packages in 2020. The first one will likely release into beta in January. Laravel Airlock is a minimal authentication package for SPAs + basic personal access / API tokens. 🌠
@ICC Due respect to others... But this man Shakib Al Hasan @Sah75official 🇧🇩🇧🇩🇧🇩 was phenomenal with his all-round performanc!!! 606 runs n 11 wickets in 8 matches only... including 3 moms n 1 five-fer!!!
Simply outstandin.....
We’re moving all official Laravel blog announcements to our own hosted blog to avoid Medium ads and country blackouts. Check it out here! https://t.co/GtzmXwCtTm 📝
#PHP 7.1 is now in security fix only mode. 7.1 security support runs until Dec 1st 2019.
All prior versions of PHP are no longer supported by the PHP project. Plan your upgrades to PHP 7.3!
https://t.co/9sR8EquI8p