Download the PHP package zoker/filament-multisite without Composer

On this page you can find all versions of the php package zoker/filament-multisite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-multisite

Filament Multisite

Manage multiple sites within a single Laravel application with first‑class Filament integration.

The package provides:


Requirements


Installation

  1. Install the package

  2. Publish and run migrations

  3. Register the Filament plugin

    In your Filament panel configuration:


Frontend usage

Defining multisite routes

Create site‑specific routes in routes/web.php using the multisite macro:

Translatable routes

Use the translatable macro for localized paths. Translation keys should be placed in your application's resources/lang directory:

Generating URLs

Use the multisite_route() helper to generate URLs that respect the current site and locale:


Managing the current site (frontend)

Facade: SiteManager

Helper: currentSite()

Middleware

Use middleware to automatically resolve the current site from the request:

You can also register the middleware in the web group.


Filament integration

Site switching in Filament

In Filament the active site is managed via the FilamentSiteManager. The currently selected site is stored in the session and is used automatically by models with the HasMultisite trait when Filament is serving the request.

Add the SiteSwitcher action to your Filament resources:

Translatable models

To use translatable models, add the HasTranslations trait to your model and define the translatable attributes.
These attributes must be stored in JSON columns in your database.

php use Illuminate\Database\Eloquent\Model; use Zoker\FilamentMultisite\Traits\HasMultisite;

class YourModel extends Model { use HasMultisite; } blade

blade

bash php artisan vendor:publish --tag=multisite-config bash composer test


All versions of filament-multisite with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^13.0
php Version ^8.4
lara-zeus/spatie-translatable Version ^2.0
filament/filament Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zoker/filament-multisite contains the following files

Loading the files please wait ...