Skip to content

Instantly share code, notes, and snippets.

@CristianLlanos
Created March 26, 2021 16:20
Show Gist options
  • Save CristianLlanos/83e1664ee418136da5641307faa2dc16 to your computer and use it in GitHub Desktop.
Save CristianLlanos/83e1664ee418136da5641307faa2dc16 to your computer and use it in GitHub Desktop.
<?php
return [
'*' => [
'path' => app_path('Models'),
'namespace' => 'App\Models',
'soft_deletes' => true,
],
'blog' => [ // Schema
'path' => app_path('Models/Blog'), // Overrides /Models
'posts' => [ // Table
'soft_deletes' => false, // Override
],
],
'forum' => [ // Schema
'path' => app_path('Models/Forum'), // Overrides /Models
'posts' => [
'soft_deletes' => true, // It's the same value as the default configuration. It's here for demonstration purposes
],
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment