Skip to content

Commit b76202e

Browse files
author
M. Rizky Hidayat
committed
First commit
1 parent 17dcf6f commit b76202e

File tree

6 files changed

+115
-1
lines changed

6 files changed

+115
-1
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.yml]
15+
indent_size = 2

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/vendor
2+
/.idea
3+
composer.phar
4+
composer.lock
5+
.DS_Store
6+
Thumbs.db

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
# laravel-ui-stisla
1+
# laravel-ui-stisla
2+
3+
## Introduction
4+
Laravel UI Stisla is Laravel custom dashboard UI that will be helpful for many applications.

composer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "poteto-dev/laravel-ui-stisla",
3+
"description": "The laravel UI with Stisla Dashboard",
4+
"keywords": ["laravel", "ui", "stisla"],
5+
"require": {
6+
"php": "^7.1.3",
7+
"illuminate/console": "~5.8|^6.0",
8+
"illuminate/filesystem": "~5.8|^6.0",
9+
"illuminate/support": "~5.8|^6.0"
10+
},
11+
"autoload": {
12+
"psr-4": {
13+
"PotetoDev\\LaravelUiStisla\\": "src/"
14+
}
15+
},
16+
"config": {
17+
"sort-packages": true
18+
},
19+
"extra": {
20+
"laravel": {
21+
"providers": [
22+
"PotetoDev\\LaravelUiStisla\\StislaServiceProvider"
23+
]
24+
}
25+
},
26+
"minimum-stability": "dev"
27+
}

src/StislaServiceProvider.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace PotetoDev\LaravelUiStisla;
4+
5+
use Illuminate\Contracts\Support\DeferrableProvider;
6+
use Illuminate\Support\ServiceProvider;
7+
use PotetoDev\LaravelUiStisla\Console\StislaCommand;
8+
9+
class StislaServiceProvider extends ServiceProvider implements DeferrableProvider
10+
{
11+
/**
12+
* Register any package services.
13+
*
14+
* @return void
15+
*/
16+
public function register()
17+
{
18+
if ($this->app->runningInConsole()) {
19+
$this->commands([
20+
StislaCommand::class
21+
]);
22+
}
23+
}
24+
25+
public function provides()
26+
{
27+
return [
28+
StislaCommand::class
29+
];
30+
}
31+
}

src/console/StislaCommand.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
namespace PotetoDev\LaravelUiStisla\Console;
4+
5+
use Illuminate\Console\Command;
6+
7+
class StislaCommand extends Command
8+
{
9+
/**
10+
* The name and signature of the console command.
11+
*
12+
* @var string
13+
*/
14+
protected $signature = 'ui-stisla';
15+
16+
/**
17+
* The console command description.
18+
*
19+
* @var string
20+
*/
21+
protected $description = 'The Stisla dashboard scaffolding for the application';
22+
23+
/**
24+
* Execute the console command.
25+
*
26+
* @return void
27+
*/
28+
public function handle()
29+
{
30+
// TODO: Add command
31+
}
32+
}

0 commit comments

Comments
 (0)