Laravel Zap logo
Getting Started

Installation

How to install Zap in your Laravel application.

Installation

Requirements:

  • PHP 8.2 to 8.5
  • Laravel 11.0 to 12

Composer

Install the package via composer:

composer require laraveljutsu/zap

Setup

Publish the migrations and run them:

php artisan vendor:publish --tag=zap-migrations
php artisan migrate

Add the HasSchedules trait to your schedulable models:

use Zap\Models\Concerns\HasSchedules;
use Illuminate\Database\Eloquent\Model;

class Doctor extends Model
{
    use HasSchedules;
}