This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

vikramsahai0810331
vikramsahai0810331

php artisan make:model TestEloquentModel

This command line doesn't seem to work properly. It throws a runtime exception as follows:

[RuntimeException]
Unable to detect application namespace.

Exception trace: () at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/vendor/laravel/framework/src/Illuminate/Console/AppNamespaceDetectorTrait.php:26 Illuminate\Console\GeneratorCommand->getAppNamespace() at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/vendor/laravel/framework/src/Illuminate/Console/GeneratorCommand.php:88 Illuminate\Console\GeneratorCommand->parseName() at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/vendor/laravel/framework/src/Illuminate/Console/GeneratorCommand.php:51 Illuminate\Console\GeneratorCommand->fire() at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/vendor/laravel/framework/src/Illuminate/Foundation/Console/ModelMakeCommand.php:36 Illuminate\Foundation\Console\ModelMakeCommand->fire() at n/a:n/a call_user_func_array() at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/vendor/laravel/framework/src/Illuminate/Container/Container.php:526 Illuminate\Container\Container->call() at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/vendor/laravel/framework/src/Illuminate/Console/Command.php:115 Illuminate\Console\Command->execute() at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257 Symfony\Component\Console\Command\Command->run() at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/vendor/laravel/framework/src/Illuminate/Console/Command.php:101 Illuminate\Console\Command->run() at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/vendor/symfony/console/Symfony/Component/Console/Application.php:874 Symfony\Component\Console\Application->doRunCommand() at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/vendor/symfony/console/Symfony/Component/Console/Application.php:195 Symfony\Component\Console\Application->doRun() at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/vendor/symfony/console/Symfony/Component/Console/Application.php:126 Symfony\Component\Console\Application->run() at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:94 Illuminate\Foundation\Console\Kernel->handle() at /Applications/XAMPP/xamppfiles/htdocs/mhrportal/artisan:36

alxy
alxy

This is the laravel command. As october has an entire different application structure, you need to use the commands provided by october:

In this case:

php artisan create:model RainLab.Blog Post

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.