Skip to content

Commit dcc32ee

Browse files
committed
Add full structure
1 parent f9aeb72 commit dcc32ee

File tree

22 files changed

+134
-0
lines changed

22 files changed

+134
-0
lines changed

structure/full/config/config.php

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
return [
4+
5+
];

structure/full/database/factories/.gitkeep

Whitespace-only changes.

structure/full/database/migrations/.gitkeep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::create('DummyTable', function (Blueprint $table) {
17+
$table->id();
18+
$table->timestamps();
19+
});
20+
}
21+
22+
/**
23+
* Reverse the migrations.
24+
*
25+
* @return void
26+
*/
27+
public function down()
28+
{
29+
Schema::dropIfExists('DummyTable');
30+
}
31+
};

structure/full/database/seeds/.gitkeep

Whitespace-only changes.

structure/full/info.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name" : "DummyName",
3+
"slug" : "DummySlug",
4+
"version" : "DummyVersion",
5+
"order" : "DummyOrder",
6+
"enabled" : true,
7+
"description" : "DummyDescription"
8+
}

structure/full/languages/en.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<html>
2+
3+
</html>

structure/full/routes/api.php

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Route;

structure/full/routes/web.php

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Route;
4+
use App\DummyName\Http\Controllers\DummyController;
5+
6+
Route::get('DummySlug' , [DummyController::class , 'index']);
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace DummyNamespace\Entities;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
7+
class DummyEntity extends Model
8+
{
9+
/**
10+
* The attributes that are mass assignable.
11+
*
12+
* @var array
13+
*/
14+
protected $fillable = [];
15+
}

structure/full/src/Events/.gitkeep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace DummyNamespace\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
use App\Http\Controllers\Controller;
7+
use DummyNamespace\Entities\DummyEntity;
8+
9+
class DummyController extends Controller
10+
{
11+
/**
12+
* Display a listing of the resource.
13+
*
14+
* @return \Illuminate\Http\Response
15+
*/
16+
public function index(Request $request)
17+
{
18+
$list = DummyEntity::all();
19+
20+
return view("DummySlug::index" , compact('list'));
21+
}
22+
}

structure/full/src/Http/Middleware/.gitkeep

Whitespace-only changes.

structure/full/src/Http/Requests/.gitkeep

Whitespace-only changes.

structure/full/src/Jobs/.gitkeep

Whitespace-only changes.

structure/full/src/Listeners/.gitkeep

Whitespace-only changes.

structure/full/src/Mails/.gitkeep

Whitespace-only changes.

structure/full/src/Notifications/.gitkeep

Whitespace-only changes.

structure/full/src/Policies/.gitkeep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
namespace DummyNamespace\Providers;
4+
5+
use Idel\Modular\CoreServiceProvider as ServiceProvider;
6+
7+
class DummyProvider extends ServiceProvider
8+
{
9+
/**
10+
* @var string $moduleName
11+
*/
12+
protected $moduleName = "DummySlug";
13+
14+
/**
15+
* Register the service provider.
16+
*
17+
* @return void
18+
*/
19+
public function register()
20+
{
21+
$this->registerStorageDisk('DummySlug');
22+
}
23+
24+
/**
25+
* Bootstrap the module services.
26+
*
27+
* @return void
28+
*/
29+
public function boot()
30+
{
31+
$this->registerConfig();
32+
$this->registerWebRoute();
33+
$this->registerApiRoute();
34+
$this->registerJsonTranslations();
35+
$this->registerViews();
36+
$this->registerMigrations();
37+
}
38+
}

structure/full/src/Tests/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)