Category: Laravel

  • CSRF

    CSRF stand for Cross-site request forgery , it’s a web security vulnerability that allows an attacker to induce users to perform actions that they do not intend to perform.CSRF is an attack where a malicious site tricks a user’s browser into submitting unauthorized requests to a trusted site where the user is authenticated. CSRF Protection Laravel…

    Zum Beitrag

    //

  • Forms

    Defining Routes for Forms When adding a route for creating a new job, use the URI jobs/create. Be mindful of route order: wildcard routes like jobs/{id} should come after specific routes like jobs/create to avoid conflicts. Organizing Views Group related views in folders, e.g., place all job-related views in a jobs directory. Use common naming conventions: Use dot notation in views references,…

    Zum Beitrag

    //

  • Seeders

    Normally after running “php artisan migrate:fresh“, your database tables are recreated but empty. Manually inserting data each time is tedious, so seeders automate this process. Seeders are classes located in the database/seeders directory. The default DatabaseSeeder class is your entry point to run multiple seeders. To run seeders, use: Creating and Running Seeders If you encounter errors like missing columns,…

    Zum Beitrag

    //