Skip to main content

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