Work on incomes & expanse

This commit is contained in:
TiclemFR
2024-01-27 10:32:55 +01:00
parent 336f2bae93
commit ce5b9ac0c8
48 changed files with 27832 additions and 15 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class page extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'page:new {name}';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Create Inertia page folder with .vue and .scss files';
/**
* Execute the console command.
*/
public function handle()
{
shell_exec('mkdir '.getcwd().'\resources\js\Pages\\'.$this->argument('name'));
shell_exec('echo. > '.getcwd().'\resources\js\Pages\\'.$this->argument('name').'\\'.strtolower($this->argument('name')).'.vue');
shell_exec('echo. > '.getcwd().'\resources\js\Pages\\'.$this->argument('name').'\\'.strtolower($this->argument('name')).'.scss');
}
}