Skip to content

Commit

Permalink
Merge pull request #2305 from codeeu/dev
Browse files Browse the repository at this point in the history
Minecraft and Blog Subdirectory Integration
  • Loading branch information
bernardhanna authored Oct 21, 2024
2 parents 2b410c4 + b2a5e01 commit a7d3d1e
Show file tree
Hide file tree
Showing 18 changed files with 1,288 additions and 74 deletions.
5 changes: 4 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
use Illuminate\Validation\Rules\Password;

use Illuminate\Support\Facades\Blade;
class AppServiceProvider extends ServiceProvider
{
/**
Expand Down Expand Up @@ -82,6 +82,9 @@ function ($view) {
);
});

// Register the Minecraft Blade component
Blade::component('homepage.minecraft', 'minecraft');

$this->bootAuth();
$this->bootEvent();
}
Expand Down
26 changes: 26 additions & 0 deletions app/View/Components/MinecraftSection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace App\View\Components;

use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class MinecraftSection extends Component
{
/**
* Create a new component instance.
*/
public function __construct()
{
//
}

/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.minecraft-section');
}
}
Loading

0 comments on commit a7d3d1e

Please sign in to comment.