Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Console/WidgetMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Arrilot\Widgets\Console;

use RuntimeException;
use Illuminate\Support\Str;
use Illuminate\Console\GeneratorCommand;
use Illuminate\Support\Str;
use RuntimeException;
use Symfony\Component\Console\Input\InputOption;

class WidgetMakeCommand extends GeneratorCommand
Expand Down Expand Up @@ -141,7 +141,7 @@ protected function replaceView($stub)
*/
protected function getDefaultNamespace($rootNamespace)
{
$namespace = config('laravel-widgets.default_namespace', $rootNamespace.'\Widgets');
$namespace = config('laravel-widgets.default_namespace', $rootNamespace.'\Widgets');

if (!Str::startsWith($namespace, $rootNamespace)) {
throw new RuntimeException("You can not use the generator if the default namespace ($namespace) does not start with application namespace ($rootNamespace)");
Expand Down