Engineering note · Laravel

Enable CSRF Protection

By Published Updated

Laravel

Laravel automatically includes CSRF protection in its forms. Ensure all your forms include the CSRF token to protect against cross-site request forgery attacks.

CODE SAMPLE Code snippet
// In your Blade template
<form method="POST" action="/example">
    @csrf
    <!-- form fields -->
</form>

More engineering notes

Pass Arguments and Options to Artisan Commands

Enhance command flexibility by passing arguments and options to Artisan commands. This allows dynami...

Custom Blade Directives in Laravel

Laravel allows you to create custom Blade directives, making it easier to reuse and organize common...