Skip to main content

Code Examples of cattr-app/server-application

Discover how to use Laravel's cattr-app/server-application examples.

9 examples

Custom artisan commands

Files in this example

  • app/Console/Commands/ResetCommand.php
View all examples

Enum

Files in this example

  • app/Enums/DashboardSortBy.php
    • app/Http/Requests/Reports/DashboardRequest.php
      • app/Http/Controllers/Api/Reports/DashboardController.php
View all examples

Jobs

Files in this example

  • app/Jobs/AssignAppsToTimeInterval.php
    • app/Http/Controllers/Api/IntervalController.php
View all examples

Send email

Files in this example

  • app/Mail/UserCreated.php
    • app/Observers/UserObserver.php
View all examples

Policies

Files in this example

  • app/Policies/TimeIntervalPolicy.php
    • app/Providers/AuthServiceProvider.php
View all examples

Custom validation rules

Files in this example

  • app/Rules/TimeIntervalDoesNotExist.php
    • app/Http/Requests/Interval/CreateTimeIntervalRequest.php
View all examples

Global scopes

Files in this example

  • app/Scopes/UserAccessScope.php
    • app/Models/User.php
      • tests/Feature/Users/ListTest.php
View all examples

Traits

Files in this example

  • app/Traits/ExposePermissions.php
    • app/Models/Task.php
      • app/Models/Project.php
View all examples

Service classes

Files in this example

  • app/Services/ProjectMemberService.php
    • app/Http/Controllers/Api/ProjectMemberController.php
View all examples