Skip to content

Commit a7d3d1e

Browse files
authored
Merge pull request #2305 from codeeu/dev
Minecraft and Blog Subdirectory Integration
2 parents 2b410c4 + b2a5e01 commit a7d3d1e

18 files changed

Lines changed: 1288 additions & 74 deletions

File tree

app/Providers/AppServiceProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Illuminate\Support\Facades\View;
1313
use Illuminate\Support\ServiceProvider;
1414
use Illuminate\Validation\Rules\Password;
15-
15+
use Illuminate\Support\Facades\Blade;
1616
class AppServiceProvider extends ServiceProvider
1717
{
1818
/**
@@ -82,6 +82,9 @@ function ($view) {
8282
);
8383
});
8484

85+
// Register the Minecraft Blade component
86+
Blade::component('homepage.minecraft', 'minecraft');
87+
8588
$this->bootAuth();
8689
$this->bootEvent();
8790
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace App\View\Components;
4+
5+
use Closure;
6+
use Illuminate\Contracts\View\View;
7+
use Illuminate\View\Component;
8+
9+
class MinecraftSection extends Component
10+
{
11+
/**
12+
* Create a new component instance.
13+
*/
14+
public function __construct()
15+
{
16+
//
17+
}
18+
19+
/**
20+
* Get the view / contents that represent the component.
21+
*/
22+
public function render(): View|Closure|string
23+
{
24+
return view('components.minecraft-section');
25+
}
26+
}

0 commit comments

Comments
 (0)