Skip to content

Commit

Permalink
#198 - wip
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofrewak committed Jan 25, 2024
1 parent c5868d7 commit 9c38b3c
Show file tree
Hide file tree
Showing 32 changed files with 116 additions and 858 deletions.
5 changes: 0 additions & 5 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@

namespace Blumilk\Website\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
protected function schedule(Schedule $schedule): void
{
}

protected function commands(): void
{
$this->load(__DIR__ . "/Commands");
Expand Down
8 changes: 4 additions & 4 deletions app/Http/Controllers/ContactController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Blumilk\Website\Http\Controllers;

use Inertia\Response;
use Inertia\ResponseFactory;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;

class ContactController extends Controller
{
public function __invoke(ResponseFactory $factory): Response
public function __invoke(Factory $factory): View
{
return $factory->render("Contact");
return $factory->make("contact");
}
}
51 changes: 0 additions & 51 deletions app/Http/Controllers/FallbackController.php

This file was deleted.

8 changes: 4 additions & 4 deletions app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Blumilk\Website\Http\Controllers;

use Inertia\Response;
use Inertia\ResponseFactory;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;

class HomeController extends Controller
{
public function __invoke(ResponseFactory $factory): Response
public function __invoke(Factory $factory): View
{
return $factory->render("Home");
return $factory->make("home");
}
}
4 changes: 0 additions & 4 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Blumilk\Website\Http;

use Blumilk\Website\Http\Middleware\Authenticate;
use Blumilk\Website\Http\Middleware\Localize;
use Blumilk\Website\Http\Middleware\RedirectIfAuthenticated;
use Blumilk\Website\Http\Middleware\TrimStrings;
use Blumilk\Website\Http\Middleware\TrustProxies;
Expand All @@ -29,12 +28,10 @@
use Illuminate\Session\Middleware\AuthenticateSession;
use Illuminate\Session\Middleware\StartSession;
use Illuminate\View\Middleware\ShareErrorsFromSession;
use Inertia\Middleware as HandleInertiaRequests;

class Kernel extends HttpKernel
{
protected $middleware = [
Localize::class,
TrustProxies::class,
HandleCors::class,
PreventRequestsDuringMaintenance::class,
Expand All @@ -51,7 +48,6 @@ class Kernel extends HttpKernel
VerifyCsrfToken::class,
SetLocale::class,
SubstituteBindings::class,
HandleInertiaRequests::class,
],
"api" => [
ThrottleRequests::class . ":api",
Expand Down
43 changes: 0 additions & 43 deletions app/Http/Middleware/Localize.php

This file was deleted.

2 changes: 1 addition & 1 deletion app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Blumilk\Website\Providers;

use Blumilk\Website\Http\Controllers\FallbackController;
use CodeZero\LocalizedRoutes\Controllers\FallbackController;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"ext-pdo": "*",
"codezero/laravel-localized-routes": "^3.1",
"guzzlehttp/guzzle": "^7.8.0",
"inertiajs/inertia-laravel": "^0.6.11",
"laravel/framework": "^10.32.1",
"laravel/sanctum": "^3.3.2",
"laravel/tinker": "^2.8.2"
Expand Down
74 changes: 1 addition & 73 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions lang/en/content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

return [
"pages.home" => "home",
"pages.about" => "about",
"pages.case_study" => "case study",
"pages.partners" => "partners",
"pages.career" => "career",
"pages.contact" => "contact",
];
12 changes: 12 additions & 0 deletions lang/pl/content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

return [
"pages.home" => "strona główna",
"pages.about" => "o firmie",
"pages.case_study" => "case study",
"pages.partners" => "partnerzy",
"pages.career" => "kariera",
"pages.contact" => "kontakt",
];
1 change: 1 addition & 0 deletions lang/pl/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
declare(strict_types=1);

return [
"events/{id}" => "wydarzenia/{id}",
"contact" => "kontakt",
];
Loading

0 comments on commit 9c38b3c

Please sign in to comment.