Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Code Examples of guillaumebriday/laravel-blog

Discover how to use Laravel's guillaumebriday/laravel-blog examples.

19 examples

Helpers

Files in this example

  • app/Helpers/date.php
    • app/Models/User.php
      • tests/Unit/PostTest.php
        • composer.json
View all examples

Global scopes

Files in this example

  • master/app/Scopes/PostedScope.php
    • app/Models/Post.php
View all examples

Local scopes

Files in this example

  • app/Models/Comment.php
    • app/Http/Controllers/Admin/ShowDashboard.php
View all examples

Blade components

Files in this example

  • app/View/Components/Alert.php
    • resources/views/shared/alerts.blade.php
      • resources/views/comments/_form.blade.php
View all examples

Polymorphic relationships

Files in this example

  • database/migrations/2017_11_15_003340_create_likes_table.php
    • app/Models/Like.php
      • app/Models/Post.php
        • app/Concern/Likeable.php
          • app/Http/Controllers/Api/V1/PostLikeController.php
View all examples

Custom validation rules

Files in this example

  • app/Rules/AlphaName.php
    • app/Http/Requests/UsersRequest.php
View all examples

Policies

Files in this example

  • app/Policies/PostPolicy.php
    • app/Http/Controllers/Api/V1/PostController.php
View all examples

Send email

Files in this example

  • app/Jobs/SendNewsletterSubscriptionEmail.php
    • app/Mail/Newsletter.php
      • app/Jobs/PrepareNewsletterSubscriptionEmail.php
        • readme.md
View all examples

Vue.js

Files in this example

  • app/Http/Controllers/Api/V1/CommentController.php
    • resources/js/components/comments/CommentList.vue
      • routes/api.php
        • app/Http/Resources/Comment.php
View all examples

Laravel/socialite

Files in this example

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

File upload

Files in this example

  • composer.json
    • app/Models/MediaLibrary.php
      • resources/views/admin/media/create.blade.php
        • app/Http/Controllers/Admin/MediaLibraryController.php
View all examples

Pagination

Files in this example

  • app/Http/Controllers/Api/V1/UserCommentController.php
View all examples

CRUD

Files in this example

  • app/Http/Controllers/Admin/PostController.php
    • routes/admin.php
      • resources/views/admin/posts/create.blade.php
        • resources/views/admin/posts/edit.blade.php
          • resources/views/admin/posts/_form.blade.php
            • resources/views/admin/posts/index.blade.php
              • resources/views/admin/posts/_list.blade.php
View all examples

User profile

Files in this example

  • resources/views/users/edit.blade.php
    • routes/web.php
      • app/Http/Controllers/UserController.php
View all examples

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.