Skip to content

Commit

Permalink
New Feature: Generate Policies
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsam726 committed Apr 7, 2024
1 parent 0d20b86 commit c0e369a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Commands/PolicyMakeCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Savannabits\Modular\Commands;

use Savannabits\Modular\Support\Concerns\GeneratesModularFiles;

class PolicyMakeCommand extends \Illuminate\Foundation\Console\PolicyMakeCommand
{
use GeneratesModularFiles;
protected $name = 'modular:make-policy';
protected $description = 'Create a new policy class in a modular package';

protected function getRelativeNamespace(): string
{
return '\\Policies';
}
}

0 comments on commit c0e369a

Please sign in to comment.