mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-14 18:54:04 +00:00
TSP stub: remove unnecessary imports
Also update PHP 8.5 steps in CONTRIBUTING.md since PHP 8.5 is released now.
This commit is contained in:
parent
a778e17686
commit
7955aae6d5
2 changed files with 4 additions and 9 deletions
|
|
@ -53,5 +53,5 @@ If you want to use XDebug, use `composer docker-rebuild-with-xdebug`.
|
||||||
## PHP 8.5
|
## PHP 8.5
|
||||||
|
|
||||||
To use PHP 8.5 during development, run:
|
To use PHP 8.5 during development, run:
|
||||||
- `PHP_VERSION=8.5.0RC2 composer docker-rebuild` to build the `test` container with PHP 8.5
|
- `PHP_VERSION=8.5.0 composer docker-rebuild` to build the `test` container with PHP 8.5
|
||||||
- `composer php85-patch` to get rid of some deprecation errors coming from `config/database.php` from within testbench-core
|
- `composer php85-patch` to get rid of some deprecation errors coming from `config/database.php` from within testbench-core
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace App\Providers;
|
namespace App\Providers;
|
||||||
|
|
||||||
use Illuminate\Routing\Route;
|
|
||||||
use Stancl\Tenancy\Jobs;
|
use Stancl\Tenancy\Jobs;
|
||||||
use Stancl\Tenancy\Events;
|
use Stancl\Tenancy\Events;
|
||||||
use Stancl\Tenancy\ResourceSyncing;
|
use Stancl\Tenancy\ResourceSyncing;
|
||||||
|
|
@ -14,12 +13,8 @@ use Stancl\JobPipeline\JobPipeline;
|
||||||
use Illuminate\Support\Facades\Event;
|
use Illuminate\Support\Facades\Event;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use Stancl\Tenancy\Actions\CloneRoutesAsTenant;
|
use Stancl\Tenancy\Actions\CloneRoutesAsTenant;
|
||||||
use Stancl\Tenancy\Overrides\TenancyUrlGenerator;
|
|
||||||
use Illuminate\Contracts\Database\Eloquent\Builder;
|
use Illuminate\Contracts\Database\Eloquent\Builder;
|
||||||
use Illuminate\Support\Facades\Route as RouteFacade;
|
use Illuminate\Support\Facades\Route;
|
||||||
use Stancl\Tenancy\Middleware\InitializeTenancyByPath;
|
|
||||||
use Stancl\Tenancy\Middleware\InitializeTenancyByRequestData;
|
|
||||||
use Stancl\Tenancy\Bootstrappers\Integrations\FortifyRouteBootstrapper;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tenancy for Laravel.
|
* Tenancy for Laravel.
|
||||||
|
|
@ -207,7 +202,7 @@ class TenancyServiceProvider extends ServiceProvider
|
||||||
|
|
||||||
// // To make Livewire v3 work with Tenancy, make the update route universal.
|
// // To make Livewire v3 work with Tenancy, make the update route universal.
|
||||||
// Livewire::setUpdateRoute(function ($handle) {
|
// Livewire::setUpdateRoute(function ($handle) {
|
||||||
// return RouteFacade::post('/livewire/update', $handle)->middleware(['web', 'universal', \Stancl\Tenancy\Tenancy::defaultMiddleware()]);
|
// return Route::post('/livewire/update', $handle)->middleware(['web', 'universal', \Stancl\Tenancy\Tenancy::defaultMiddleware()]);
|
||||||
// });
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -228,7 +223,7 @@ class TenancyServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
$this->app->booted(function () {
|
$this->app->booted(function () {
|
||||||
if (file_exists(base_path('routes/tenant.php'))) {
|
if (file_exists(base_path('routes/tenant.php'))) {
|
||||||
RouteFacade::namespace(static::$controllerNamespace)
|
Route::namespace(static::$controllerNamespace)
|
||||||
->middleware('tenant')
|
->middleware('tenant')
|
||||||
->group(base_path('routes/tenant.php'));
|
->group(base_path('routes/tenant.php'));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue