Skip to main content

Code Examples of laravelio/laravel.io

Discover how to use Laravel's laravelio/laravel.io examples.

21 examples

Events & listeners

Files in this example

  • app/Events/ArticleWasApproved.php
    • app/Providers/EventServiceProvider.php
      • app/Listeners/SendArticleApprovedNotification.php
View all examples

Traits

Files in this example

  • app/Helpers/HasSlug.php
    • app/Models/Tag.php
      • app/Models/Article.php
        • routes/bindings.php
View all examples

Policies

Files in this example

  • app/Policies/ArticlePolicy.php
    • app/Http/Controllers/Admin/ArticlesController.php
      • app/Models/User.php
View all examples

Local scopes

Files in this example

  • app/Models/Thread.php
    • app/Http/Controllers/Forum/ThreadsController.php
View all examples

Polymorphic relationships

Files in this example

  • app/Models/Tag.php
    • app/Helpers/HasTags.php
      • app/Models/Thread.php
        • app/Helpers/HasLikes.php
          • app/Models/Article.php
            • app/Jobs/CreateArticle.php
              • app/Jobs/LikeArticle.php
View all examples

Custom validation rules

Files in this example

  • app/Rules/PasscheckRule.php
    • app/Http/Requests/UpdatePasswordRequest.php
View all examples

Ramsey/uuid

Files in this example

  • composer.json
    • database/migrations/2017_10_18_193001_create_subscriptions_table.php
      • app/Helpers/HasUuid.php
        • app/Models/Subscription.php
          • app/Jobs/CreateThread.php
            • routes/bindings.php
View all examples

Factories

Files in this example

  • database/factories/LikeFactory.php
    • tests/Integration/Jobs/DeleteThreadTest.php
View all examples

Notifications

Files in this example

  • app/Notifications/ArticleApprovedNotification.php
    • app/Listeners/SendArticleApprovedNotification.php
View all examples

Laravel/socialite

Files in this example

  • composer.json
    • app/Http/Controllers/Auth/GithubController.php
      • routes/web.php
        • resources/views/auth/login.blade.php
View all examples

Blade directive

Files in this example

  • resources/macros/blade.php
    • app/Providers/AppServiceProvider.php
      • resources/views/articles/show.blade.php
        • resources/views/articles/_form.blade.php
View all examples

Livewire

Files in this example

  • app/Http/Livewire/LikeReply.php
    • resources/views/livewire/like-reply.blade.php
      • resources/views/forum/threads/show.blade.php
View all examples

Collection Methods: Chunk

Files in this example

  • app/Http/Controllers/HomeController.php
View all examples

GroupBy

Files in this example

  • app/Models/Thread.php
    • app/Http/Controllers/Forum/ThreadsController.php
View all examples

User profile

Files in this example

  • resources/views/users/settings/profile.blade.php
    • app/Http/Controllers/Settings/ProfileController.php
      • routes/web.php
View all examples

Alpine.js

Files in this example

  • package.json
    • resources/views/users/profile.blade.php
View all examples