Skip to content

Commit

Permalink
Merge pull request #14 from savannabits/0.x-dev
Browse files Browse the repository at this point in the history
New Feature: Generate Policies
  • Loading branch information
coolsam726 authored Apr 7, 2024
2 parents 4fa3df3 + 1a3bc03 commit ccb05b2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Commands/PolicyMakeCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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 ccb05b2

Please sign in to comment.