mark

Installation

Requirements

Mark requires the following to run:

  • PHP 8.2+
  • Laravel v11.40+
  • Filament v3.0+

Installation

Install Lara Zeus Mark by running the following commands in your Laravel project directory.

1composer require lara-zeus/mark

Filament Theme

Then, set up a Filament Custom Theme and add the following path to the Tailwind configuration:

1'./vendor/lara-zeus/mark/resources/**/*.blade.php'

Setup the Marker

to setup the authenticated user (the Marker) that the plugin depend on it:

In your AppServiceProvider, in the boot method add the following:

1use App\Models\User;
2use LaraZeus\Mark\Facades\Mark;
3 
4Mark::markerModel(User::class);

Migrations

to publish the migrations, run the command:

1php artisan vendor:publish --tag=zeus-mark-migrations

Keep the migrations of the marks you want to use, also check the customization section in case you need it, then run:

1php artisan migrate

Set The Traits:

add the related traits to the marker and markable models, the following table lists the available traits for each mark you want to use:

Mark Marker (user) Markable (post)
Like HasLikes Likeable
Rating HasRatings Ratable
Bookmark HasBookMarks Bookmarkable

Zeus is an open-source project. Thanks to my sponsors for helping me maintain this project.