Category: Laravel

  • HTTP Request Methods

    There are a bunch of different request methods in Laravel but your browser doesn’t support all of them so here’s how to trick it. Initially your browser only supports “get” and “post” requests but most common frameworks (therefor Laravel) understand a few more. Let’s look at “patch” (update) and “delete”. Now let’s say you have…

    Zum Beitrag

    //

  • CRUD

    CRUD stand for Create, Read, Update, Delete. This contains the whole roundtrip for a resource. A resource involves (in example of Jobs): show all jobs, show a single job, create a job, store a job (save the newly created job in the database), edit a job, update a job and delete a job. Here’s how…

    Zum Beitrag

    //

  • Validation

    Adding a Create Job Button To make it easy to access the job creation form, add a “Create Job” button in your layout’s header section. Use Tailwind CSS classes to style it like a button and position it using Flexbox utilities: Consider extracting this into a reusable Blade component for cleaner code. Here’s how: Firstly…

    Zum Beitrag

    //