Initial commit

This commit is contained in:
mahdi mansouri authored and GitHub committed 2025-09-26 13:17:10 +03:30
commit 8b9f0cd47a
32 files changed
+1111

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
<?php
namespace VendorName\Skeleton\Commands;
use Illuminate\Console\Command;
class SkeletonCommand extends Command
{
public $signature = 'skeleton';
public $description = 'My command';
public function handle(): int
{
$this->comment('All done');
return self::SUCCESS;
}
}
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace VendorName\Skeleton\Facades;
use Illuminate\Support\Facades\Facade;
/**
* @see \VendorName\Skeleton\Skeleton
*/
class Skeleton extends Facade
{
protected static function getFacadeAccessor(): string
{
return \VendorName\Skeleton\Skeleton::class;
}
}
+5
View File
@@ -0,0 +1,5 @@
<?php
namespace VendorName\Skeleton;
class Skeleton {}
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace VendorName\Skeleton;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use VendorName\Skeleton\Commands\SkeletonCommand;
class SkeletonServiceProvider extends PackageServiceProvider
{
public function configurePackage(Package $package): void
{
/*
* This class is a Package Service Provider
*
* More info: https://github.com/spatie/laravel-package-tools
*/
$package
->name('skeleton')
->hasConfigFile()
->hasViews()
->hasMigration('create_migration_table_name_table')
->hasCommand(SkeletonCommand::class);
}
}