Ah, #LaravelDaily to the rescue! A starter kit based on Blade only, excellent for those apps that really don't need the complexity Vue, React, or even Livewire bring. #Laravel
NEW: Laravel 12 starter kit from Laravel Daily!
I saw many people wanted a starter kit *with just Blade*.
Say no more!
laravel new --using=laraveldaily/starter-kit
Features:
- Functionality like Laravel Breeze but with different layout - left sidebar and colors, more like AdminLTE/CoreUI
- Three-level menu
- Blade components you can reuse and customize
- No Vue/Livewire/React, just minimal Alpine where necessary
This was actually an internal need: I wanted such starter kit for our demos, to not overwhelm the audience explaining Vue/React/Livewire with official starter kits.
Will shoot a demo video with CRUD project next week.
GitHub: https://t.co/JKCR7bwBbg
It's early version, so let me know here or on GitHub if you have any issues.
Larupload is a file uploader for Laravel, offering many useful features including resizing, cropping, and optimizing images & videos π - https://t.co/O5AnVpqCLX
How to use the throttle middleware to prevent unwelcome guests from trying to log in multiple times in a row (unless they change their email or ip) #Laravel#PHP
Laravel tip.
Protect your app from spammers in the registration.
Side benefit: if you send emails on registration, you avoid email queue flooding and extra bills from email provider.
After reaching the limit, users/bots would get the error "429 Too Many Requests".
Laravel Tip π‘: HTTP Response Status Helpers
When making API requests, you often need to check the response status code. While you can do this manually, Laravel provides wrappers for almost all status codes, which you can use for elegant and readable checks π
#laravel
A very interesting read about why phpinfo() can be a security threat even when you're making its data available only for admin accounts! #PHP#Laravel https://t.co/aQ4BQOxIkq
Laravel tip.
Eloquent method `touch()` assigns the current timestamp to whatever field you provide.
If you don't provide any field, it updates the `updated_at`.
Link to the source: https://t.co/TCaapROA9m
This solution has limitations when it comes to using Octane, but it's a good starting point to ensure that you only have one model instance at a time for a certain DB record: https://t.co/TaNTc7FdwZ
Laravel Tips π‘
1οΈβ£ Use isDirty() before saving to prevent unnecessary database writes. Combine getOriginal() with wasChanged() for precise audit logging. getChanges() is handy for debugging or event-driven change tracking.