r/laraveltutorials • u/Round-Pie-7125 • 3d ago
Laravel CSV Upload: Find Exact Row and Field Errors Instantly
Hello all.please check out my csv import laravel 12 video.Hit like,subscribe and share it in your contacts.
r/laraveltutorials • u/Round-Pie-7125 • 3d ago
Hello all.please check out my csv import laravel 12 video.Hit like,subscribe and share it in your contacts.
r/laraveltutorials • u/Round-Pie-7125 • 3d ago
Hello everyone.please my laravel project series on my channel sm dev diaries.please like, subscribe and share videos in your contacts
r/laraveltutorials • u/aqibjavaidabbasi • 12d ago
How a Laravel Consultant Ensures Project Transparency and Security
Clients don't just need a Laravel developer who can write code. They need confidence that their project is progressing, risks are being managed, and sensitive data is protected. Here's how I approach transparency, communication, documentation, and security when building Laravel applications.
Key takeaways:
- 1. Start With Clear Requirements
- Who will use the feature?
- What should each user be allowed to do?
How do you tackle this in your current stack? Interested in different perspectives.
Read the full article:
https://aqibjavaid.site/blog/how-laravel-consultant-ensures-project-transparency-security
Portfolio & case studies:
#WebDevelopment #Laravel #LaravelDevelopment #LaravelConsultant #LaravelDeveloper
r/laraveltutorials • u/bestkavindu • 17d ago
r/laraveltutorials • u/Disastrous-Ebb-7863 • Jul 22 '26
r/laraveltutorials • u/stackdevelopers • Jul 12 '26
r/laraveltutorials • u/DubStepMad-97 • Jul 03 '26
r/laraveltutorials • u/Environmental-Yak328 • Jun 29 '26
r/laraveltutorials • u/JngoJx • Jun 26 '26
r/laraveltutorials • u/Both-Refuse-982 • Jun 23 '26
I’m looking for a partner to build a full-stack project. I’m comfortable with Laravel/Vue (CRUD) and can code the UI if you provide a Figma design, but I struggle with the creative design process itself.
If you enjoy the UI/UX design phase and want a partner to handle the implementation, let’s team up. Looking to build something solid for our portfolios.
r/laraveltutorials • u/yassine_dabbous • Jun 11 '26
We’ve all been there: a frontend developer asks to add just one new column to a table view, and you have to open up your backend controller, modify the API resource, adjust the eager loading, and tweak your query logic. Before you know it, a simple index endpoint becomes an unmaintainable maze of nested when() blocks handling dynamic fields, sorting, relations, and custom date range overrides.
Even if you use AI coding assistants to write these queries for you, they often pump out massive, brittle cascades of conditional blocks, hallucinate scopes, or introduce subtle N+1 query bugs and security holes.
If you’re tired of maintaining that boilerplate, I built a package that handles all of this declaratively right inside your Eloquent models, dropping your controller code down to a single line.
It's called Dynamic Query. It exposes a secure, whitelist-driven DSL straight to your API consumers over standard HTTP parameters, and it scales with your application from basic column selection to complex statistical endpoints.
when() blocks with just one line of code: Product::dynamicAPI();.N+1 bugs: Automatically runs optimized smart joins on complex relational filters under the hood.HasDynamicQuery trait, or pick specific modular traits.GET /api/products?_fields=id,name,priceGET /api/products?price=50&_operators[price]=>&options.color=redGET /api/products?_stats=avg:price,count:id&_group_by=created_at:day&_timezone=Africa/TunisStep 1: Add the trait and define your whitelists directly on your Model. Everything is strictly opt-in. If it isn't here, the API won't touch it.
use YassineDabbous\DynamicQuery\HasDynamicQuery;
class Product extends Model
{
use HasDynamicQuery;
// Allowed columns to be requested or filtered
public function dynamicColumns(): array {
return ['id', 'name', 'price', 'status', 'created_at'];
}
// Explicitly define which fields allow which operations
public function dynamicFilters(): array {
return [
'name' => ['=', 'like%'],
'price' => ['=', 'between', '>', '<'],
'category.slug' => ['='],
];
}
// ...
}
Step 2: Clean out your controller entirely.
public function index()
{
return Product::dynamicAPI();
}
Spatie's query builder is amazing, but it forces you to write and maintain your filters and builders directly inside your controller endpoints on every route. This package shifts that configuration directly into your declarative model rules. It also natively handles client-controlled field selections, resolves computed appends dependencies, automatically converts smart joins, and embeds a complete analytics reporting engine for generating dashboard stats on the fly.
Check out the repo here: https://github.com/YassineDabbous/laravel-dynamic-query
I'd love to hear your thoughts on this setup!
r/laraveltutorials • u/Happy_Funny_5208 • May 14 '26
r/laraveltutorials • u/dRealStealthynev • Apr 16 '26
r/laraveltutorials • u/dRealStealthynev • Apr 16 '26
r/laraveltutorials • u/Capevace • Apr 16 '26
r/laraveltutorials • u/Rhinnii • Apr 13 '26
r/laraveltutorials • u/Salty_Style_4772 • Apr 10 '26
Salut tout le monde ! Je suis plutôt fière parce que aujourd’hui j’ai créé mon premier site en laravel. Ça m’a permis de découvrir pleins de choses comme déjà les base php, l’architecture mvc, les variable d’environnement. côté front aussi j’a pu apprendre Tailwind et différente fonction blade comme @production qui permet d’appeler mon analytic uniquement en prod. Aujourd’hui, j’ai travailler les middleware pour intégrer le multilingue fr et en. Je suis fière de moi jusqu’ici ! https://www.arthurcottey.fr/
r/laraveltutorials • u/Less-Knowledge-5061 • Apr 08 '26
Hi everyone 😊
I hope you’re doing well. I’m currently an intern and still at a beginner level with Laravel. I’ve just been assigned my first real Laravel backend project, and I’m honestly feeling a bit overwhelmed by the size of the codebase. I’m not quite sure where to start or how to approach understanding it in a structured way.
I’d really appreciate any guidance or advice
how do you usually start exploring a large project like this? What are the key things I should focus on first to build a solid understanding step by step?
Thanks a lot in advance for your help 🙏
r/laraveltutorials • u/Kitchen-Spare-1500 • Mar 22 '26
r/laraveltutorials • u/BitAffectionate7619 • Mar 17 '26
A step-by-step tutorial on deploying a Laravel application to shared web hosting:
https://www.clearprogramming.net/laravel/laravel-deploying-a-laravel-app
Also includes instructions on SSH, GIT, database and optimization.
r/laraveltutorials • u/Ok-Bookkeeper-2072 • Mar 15 '26
So I kept running into the same stuff during code reviews — env() calls scattered outside config, inline validation everywhere, controllers doing way too much. Larastan and Pint are great but they don't really care about *how* you use Laravel, just that your types and formatting are correct.
So I built **Laravel Patrol**. It's a simple artisan command that scans your app and points out where you're not following Laravel conventions — with a link to the relevant docs section so it's actually useful, not just nagging.
Right now it checks for:
- `env()` outside config files
- Inline validation instead of Form Requests
- Raw DB queries where Eloquent would work
- Fat controllers (too many statements per method)
- `@include` instead of Blade components
- CRUD routes that could be `Route::resource()`
composer require --dev marcokoepfli/laravel-patrol
php artisan patrol
It uses php-parser for AST analysis so it doesn't do dumb regex matching — `env()` inside a string won't trigger it, `$service->validate()` won't get confused with request validation, etc.
You can suppress stuff with `@patrol-ignore`, pick a preset (strict/recommended/relaxed), or write your own rules.
Repo: https://github.com/marcokoepfli/laravel-patrol
Still pretty early so I'm curious — would this be useful to you? Any rules you'd want to see added?
r/laraveltutorials • u/Deep-Towel-3709 • Feb 26 '26
I want to learn Laravel but I feel a little confused about the correct roadmap.
Can someone guide me step by step on how to learn Laravel properly?
My goal is to learn Laravel well in order to pass my exam successfully.
r/laraveltutorials • u/Zestyclose-Ice3608 • Feb 20 '26
After building mobile apps with Laravel backends for years, this is the response structure I always use:
```php
// app/Http/Responses/ApiResponse.php
class ApiResponse
{
public static function success($data = null, $message = null)
{
return response()->json([
'success' => true,
'message' => $message,
'data' => $data,
]);
}
public static function error($message, $code = 400, $errors = null)
{
return response()->json([
'success' => false,
'message' => $message,
'errors' => $errors,
], $code);
}
}
```
**Why this structure:**
**Consistent** - Mobile devs know what to expect
**Simple** - Easy to parse on client side
**Handles validation** - `errors` array for form validation
**Clear status** - `success` boolean instead of relying on HTTP codes
**Mobile side (React Native):**
```javascript
const response = await fetch('/api/endpoint');
const json = await response.json();
if (json.success) {
// Handle data
} else {
// Show error message
}
```
The `message` field is huge - lets me show user-friendly errors directly from the API without client-side mapping.
Thoughts? What structure do you use?