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 monicahq/monica

Discover how to use Laravel's monicahq/monica examples.

17 examples

Pivot tables Many-to-many BelongsToMany

Files in this example

  • app/Models/Instance/Emotion/Emotion.php
    • database/migrations/2018_12_09_145956_create_emotion_call_table.php
View all examples

Traits

Files in this example

  • app/Traits/AmountFormatter.php
    • app/Models/Contact/Debt.php
      • resources/views/people/debt/form.blade.php
View all examples

Service classes

Files in this example

  • app/Services/User/CreateUser.php
    • app/Http/Controllers/Auth/InvitationController.php
View all examples

Helpers

Files in this example

  • app/Helpers/CollectionHelper.php
    • app/Providers/MacroServiceProvider.php
      • app/Http/Controllers/Settings/GendersController.php
View all examples

Notifications

Files in this example

  • app/Notifications/UserReminded.php
    • app/Jobs/Reminder/NotifyUserAboutReminder.php
View all examples

Interfaces

Files in this example

  • app/Interfaces/Hashing.php
    • app/Models/ModelBindingHasher.php
      • app/Traits/Hasher.php
View all examples

View composers

Files in this example

  • app/Http/ViewComposers/CurrencySelectViewComposer.php
    • resources/views/partials/components/currency-select.blade.php
View all examples

API resources

Files in this example

  • app/Http/Resources/Company/Company.php
    • app/Http/Controllers/Api/Account/ApiCompanyController.php
View all examples

Custom exceptions

Files in this example

  • app/Exceptions/FileNotFoundException.php
    • app/Services/Account/Settings/DestroyAllDocuments.php
View all examples

Custom artisan commands

Files in this example

  • app/Console/Commands/Clean.php
    • app/Console/Kernel.php
View all examples

Laravel/passport

Files in this example

  • app/Models/User/User.php
    • app/Http/Controllers/Api/Auth/OAuthController.php
View all examples

Collection Methods: Chunk

Files in this example

  • database/migrations/2018_05_06_061227_external_countries.php
View all examples

Collection Methods: Tap

Files in this example

  • app/Services/Account/Photo/UploadPhoto.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.