Created
September 9, 2017 20:24
-
-
Save melihovv/ff6f757dd1a108df56a063dbbbafb830 to your computer and use it in GitHub Desktop.
Tinker config for laravel project with module structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types = 1); | |
_Tinker::register(app_path('Models')); | |
foreach (glob(app_path('Modules/*/Models')) as $modelsPath) { | |
_Tinker::register($modelsPath); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment