Skip to main content

Code Examples of JustinByrne/Mealing

Discover how to use Laravel's JustinByrne/Mealing examples.

10 examples

Custom validation rules

Files in this example

  • app/Rules/CurrentPasswordRule.php
    • app/Http/Requests/ChangePasswordRequest.php
      • app/Http/Controllers/ProfileController.php
View all examples

Events & listeners

Files in this example

  • app/Providers/EventServiceProvider.php
    • app/Events/UserVerified.php
      • app/Listeners/SendNewUserNotification.php
View all examples

Pivot tables Many-to-many BelongsToMany

Files in this example

  • app/Models/Recipe.php
    • resources/views/recipes/show.blade.php
      • database/migrations/2020_12_03_150502_add_quantity_to_ingredient_meal_pivot_table.php
View all examples

Livewire

Files in this example

  • app/Http/Livewire/Admin/Users/Approval.php
    • resources/views/livewire/admin/users/approval.blade.php
      • resources/views/admin/users/index.blade.php
View all examples

File upload

Files in this example

  • composer.json
    • resources/views/recipes/create.blade.php
      • app/Http/Controllers/UploadController.php
        • app/Models/Recipe.php
          • app/Http/Controllers/RecipeController.php
View all examples

CRUD

Files in this example

  • app/Http/Controllers/IngredientController.php
    • routes/web.php
      • views/admin/ingredients/index.blade.php
        • resources/views/admin/ingredients/create.blade.php
          • resources/views/admin/ingredients/edit.blade.php
            • resources/views/admin/ingredients/show.blade.php
View all examples

Captcha

Files in this example

  • composer.json
    • app/Rules/RecaptchaRule.php
      • app/Http/Requests/AuthLoginRequest.php
View all examples

Alpine.js

Files in this example

  • package.json
    • resources/views/layouts/app.blade.php
      • resources/views/layouts/header.blade.php
View all examples