repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Http/Middleware/Authenticate.php | app/Http/Middleware/Authenticate.php | <?php
namespace Waterline\Http\Middleware;
use Waterline\Waterline;
class Authenticate
{
public function handle($request, $next)
{
return Waterline::check($request) ? $next($request) : abort(403);
}
}
| php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Http/Resources/StoredWorkflowLogResource.php | app/Http/Resources/StoredWorkflowLogResource.php | <?php
declare(strict_types=1);
namespace Waterline\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
use Workflow\Models\StoredWorkflowLog;
use Workflow\Serializers\Serializer;
/**
* @mixin StoredWorkflowLog
*/
class StoredWorkflowLogResource extends JsonResource
{
public static $wrap = null;
... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Http/Resources/StoredWorkflowExceptionResource.php | app/Http/Resources/StoredWorkflowExceptionResource.php | <?php
declare(strict_types=1);
namespace Waterline\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
use SplFileObject;
use Workflow\Models\StoredWorkflowException;
use Workflow\Serializers\Serializer;
/**
* @mixin StoredWorkflowException
*/
class StoredWorkflowExceptionResource extends JsonResource... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Http/Resources/StoredWorkflowRelationshipResource.php | app/Http/Resources/StoredWorkflowRelationshipResource.php | <?php
declare(strict_types=1);
namespace Waterline\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
/**
* @mixin \Illuminate\Database\Eloquent\Model
*/
class StoredWorkflowRelationshipResource extends JsonResource
{
public static $wrap = null;
public function toArray($request)
{
... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Http/Resources/StoredWorkflowResource.php | app/Http/Resources/StoredWorkflowResource.php | <?php
declare(strict_types=1);
namespace Waterline\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
use Waterline\Transformer\WorkflowToChartDataTransformer;
use Workflow\Models\StoredWorkflow;
use Workflow\Serializers\Serializer;
/**
* @mixin StoredWorkflow
*/
class StoredWorkflowResource extends ... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Dto/ChartDataPoint.php | app/Dto/ChartDataPoint.php | <?php
declare(strict_types=1);
namespace Waterline\Dto;
use JsonSerializable;
class ChartDataPoint implements JsonSerializable
{
public function __construct(
private string $x,
private float | int $yMin,
private float | int $yMax,
private string $type,
) {}
public functio... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Transformer/WorkflowToChartDataTransformer.php | app/Transformer/WorkflowToChartDataTransformer.php | <?php
declare(strict_types=1);
namespace Waterline\Transformer;
use Carbon\CarbonInterface;
use DateTimeInterface;
use Illuminate\Support\Arr;
use Waterline\Dto\ChartDataPoint;
use Workflow\Models\StoredWorkflow;
use Workflow\Models\StoredWorkflowLog;
use Workflow\Workflow;
class WorkflowToChartDataTransformer
{
... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Console/InstallCommand.php | app/Console/InstallCommand.php | <?php
namespace Waterline\Console;
use Illuminate\Console\Command;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
class InstallCommand extends Command
{
protected $signature = 'waterline:install';
protected $description = 'Install all of Waterline\'s resources';
public function han... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Console/PublishCommand.php | app/Console/PublishCommand.php | <?php
namespace Waterline\Console;
use Illuminate\Console\Command;
class PublishCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'waterline:publish';
/**
* The console command description.
*
* @var... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Repositories/Workflow/Interfaces/WorkflowRepositoryInterface.php | app/Repositories/Workflow/Interfaces/WorkflowRepositoryInterface.php | <?php
namespace Waterline\Repositories\Workflow\Interfaces;
interface WorkflowRepositoryInterface
{
public function flowsPastHour();
public function exceptionsPastHour();
public function failedFlowsPastWeek();
public function maxWaitTimeWorkflow();
public function maxDurationWorkflow();
p... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Repositories/Workflow/Infrastructure/WorkflowRepositoryPostgreSQL.php | app/Repositories/Workflow/Infrastructure/WorkflowRepositoryPostgreSQL.php | <?php
namespace Waterline\Repositories\Workflow\Infrastructure;
class WorkflowRepositoryPostgreSQL extends WorkflowRepositoryBaseSQL
{
public function maxDurationWorkflow()
{
return $this->workflowModel::select('*')
->selectRaw('(EXTRACT(EPOCH FROM created_at - updated_at)) as duration')
... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Repositories/Workflow/Infrastructure/WorkflowRepositoryBaseSQL.php | app/Repositories/Workflow/Infrastructure/WorkflowRepositoryBaseSQL.php | <?php
namespace Waterline\Repositories\Workflow\Infrastructure;
use Waterline\Repositories\Workflow\Interfaces\WorkflowRepositoryInterface;
abstract class WorkflowRepositoryBaseSQL implements WorkflowRepositoryInterface
{
protected $workflowModel;
protected $workflowExceptionModel;
public function __con... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Repositories/Workflow/Infrastructure/WorkflowRepositoryMySQL.php | app/Repositories/Workflow/Infrastructure/WorkflowRepositoryMySQL.php | <?php
namespace Waterline\Repositories\Workflow\Infrastructure;
class WorkflowRepositoryMySQL extends WorkflowRepositoryBaseSQL
{
public function maxDurationWorkflow()
{
return $this->workflowModel::select('*')
->selectRaw('TIMEDIFF(created_at, updated_at) as duration')
->where... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Repositories/Workflow/Infrastructure/WorkflowRepositorySQLite.php | app/Repositories/Workflow/Infrastructure/WorkflowRepositorySQLite.php | <?php
namespace Waterline\Repositories\Workflow\Infrastructure;
class WorkflowRepositorySQLite extends WorkflowRepositoryBaseSQL
{
public function maxDurationWorkflow()
{
return $this->workflowModel::select('*')
->selectRaw('julianday(created_at) - julianday(updated_at) as duration')
... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/app/Repositories/Workflow/Infrastructure/WorkflowRepositorySQLServer.php | app/Repositories/Workflow/Infrastructure/WorkflowRepositorySQLServer.php | <?php
namespace Waterline\Repositories\Workflow\Infrastructure;
class WorkflowRepositorySQLServer extends WorkflowRepositoryBaseSQL
{
public function maxDurationWorkflow()
{
return $this->workflowModel::select('*')
->selectRaw('DATEDIFF(SECOND, created_at, updated_at) as duration')
... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/app/Console/CreateTestParentWorkflow.php | workbench/app/Console/CreateTestParentWorkflow.php | <?php
namespace Workbench\App\Console;
use Illuminate\Console\Command;
class CreateTestParentWorkflow extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'workflow:create-test-parent';
/**
* The console command descrip... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/app/Console/CreateTestWorkflow.php | workbench/app/Console/CreateTestWorkflow.php | <?php
namespace Workbench\App\Console;
use Illuminate\Console\Command;
class CreateTestWorkflow extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'workflow:create-test';
/**
* The console command description.
*
... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/app/Console/CreateTestContinueAsNewWorkflow.php | workbench/app/Console/CreateTestContinueAsNewWorkflow.php | <?php
namespace Workbench\App\Console;
use Illuminate\Console\Command;
class CreateTestContinueAsNewWorkflow extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'workflow:create-test-continue-as-new';
/**
* The console... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/app/Workflows/TestActivity.php | workbench/app/Workflows/TestActivity.php | <?php
namespace Workbench\App\Workflows;
use Workflow\Activity;
class TestActivity extends Activity
{
public function execute()
{
return 'result';
}
}
| php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/app/Workflows/TestContinueAsNewWorkflow.php | workbench/app/Workflows/TestContinueAsNewWorkflow.php | <?php
namespace Workbench\App\Workflows;
use Workflow\ActivityStub;
use Workflow\Workflow;
use Workflow\WorkflowStub;
class TestContinueAsNewWorkflow extends Workflow
{
public function execute(int $count = 0, int $max = 3)
{
yield ActivityStub::make(TestActivity::class);
if ($count >= $max) ... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/app/Workflows/TestChildWorkflow.php | workbench/app/Workflows/TestChildWorkflow.php | <?php
namespace Workbench\App\Workflows;
use Workflow\ActivityStub;
use Workflow\Workflow;
class TestChildWorkflow extends Workflow
{
public function execute()
{
yield ActivityStub::make(TestActivity::class);
return 'Child workflow completed successfully';
}
}
| php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/app/Workflows/TestWorkflow.php | workbench/app/Workflows/TestWorkflow.php | <?php
namespace Workbench\App\Workflows;
use Workflow\ActivityStub;
use Workflow\Workflow;
class TestWorkflow extends Workflow
{
public function execute()
{
yield ActivityStub::make(TestActivity::class);
return 'Workflow completed successfully';
}
}
| php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/app/Workflows/TestParentWorkflow.php | workbench/app/Workflows/TestParentWorkflow.php | <?php
namespace Workbench\App\Workflows;
use Workflow\ActivityStub;
use Workflow\ChildWorkflowStub;
use Workflow\Workflow;
class TestParentWorkflow extends Workflow
{
public function execute()
{
yield ActivityStub::make(TestActivity::class);
yield ChildWorkflowStub::make(TestChildWorkflow::c... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/app/Models/User.php | workbench/app/Models/User.php | <?php
namespace Workbench\App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use HasFactory, Notifiable;
/**... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/app/Providers/WorkbenchServiceProvider.php | workbench/app/Providers/WorkbenchServiceProvider.php | <?php
namespace Workbench\App\Providers;
use Illuminate\Support\ServiceProvider;
class WorkbenchServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
if ($this->app->runningInConsole()) {
$this->commands... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/routes/web.php | workbench/routes/web.php | <?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/routes/api.php | workbench/routes/api.php | <?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| r... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/routes/console.php | workbench/routes/console.php | <?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/database/factories/UserFactory.php | workbench/database/factories/UserFactory.php | <?php
namespace Workbench\Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use Workbench\App\Models\User;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\Workbench\App\Models\User>
*/
class UserFactory extends Factory
{
/**
* The name of t... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/database/migrations/2022_01_01_000003_create_workflow_timers_table.php | workbench/database/migrations/2022_01_01_000003_create_workflow_timers_table.php | <?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateWorkflowTimersTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::creat... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/database/migrations/2020_01_01_000002_create_jobs_table.php | workbench/database/migrations/2020_01_01_000002_create_jobs_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('jobs', function (Blueprint $table) {
... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/database/migrations/2022_01_01_000004_create_workflow_exceptions_table.php | workbench/database/migrations/2022_01_01_000004_create_workflow_exceptions_table.php | <?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateWorkflowExceptionsTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::c... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/database/migrations/2022_01_01_000001_create_workflow_logs_table.php | workbench/database/migrations/2022_01_01_000001_create_workflow_logs_table.php | <?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateWorkflowLogsTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create(... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/database/migrations/2022_01_01_000002_create_workflow_signals_table.php | workbench/database/migrations/2022_01_01_000002_create_workflow_signals_table.php | <?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateWorkflowSignalsTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::crea... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/database/migrations/2022_01_01_000000_create_workflows_table.php | workbench/database/migrations/2022_01_01_000000_create_workflows_table.php | <?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateWorkflowsTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('wo... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/database/migrations/2022_01_01_000005_create_workflow_relationships_table.php | workbench/database/migrations/2022_01_01_000005_create_workflow_relationships_table.php | <?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateWorkflowRelationshipsTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/workbench/database/seeders/DatabaseSeeder.php | workbench/database/seeders/DatabaseSeeder.php | <?php
namespace Workbench\Database\Seeders;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Workbench\Workbench\Database\Factories\UserFactory;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/tests/TestCase.php | tests/TestCase.php | <?php
namespace Waterline\Tests;
use Illuminate\Support\Carbon;
use function Orchestra\Testbench\artisan;
use function Orchestra\Testbench\workbench_path;
use Orchestra\Testbench\TestCase as BaseTestCase;
use PDO;
use Waterline\Waterline;
abstract class TestCase extends BaseTestCase
{
protected function setUp():... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/tests/Feature/DashboardWorkflowTest.php | tests/Feature/DashboardWorkflowTest.php | <?php
namespace Waterline\Tests\Feature;
use Exception;
use Illuminate\Testing\Fluent\AssertableJson;
use Waterline\Tests\TestCase;
use Workflow\Models\StoredWorkflow;
use Workflow\Serializers\Serializer;
class DashboardWorkflowTest extends TestCase
{
public function testIndexNone()
{
$storedWorkflow... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/tests/Feature/DashboardStatsControllerTest.php | tests/Feature/DashboardStatsControllerTest.php | <?php
namespace Waterline\Tests\Feature;
use Waterline\Tests\TestCase;
use Workflow\Models\StoredWorkflow;
class DashboardStatsControllerTest extends TestCase
{
public function testIndexNone()
{
$response = $this
->get('/waterline/api/stats');
$response
->assertStatus... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/tests/Unit/ExampleTest.php | tests/Unit/ExampleTest.php | <?php
namespace Waterline\Tests\Unit;
use PHPUnit\Framework\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function test_that_true_is_true()
{
$this->assertTrue(true);
}
}
| php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/routes/web.php | routes/web.php | <?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/config/waterline.php | config/waterline.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Waterline Domain
|--------------------------------------------------------------------------
|
| This is the subdomain where Waterline will be accessible from. If this
| setting is null, Waterli... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
laravel-workflow/waterline | https://github.com/laravel-workflow/waterline/blob/03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57/resources/views/layout.blade.php | resources/views/layout.blade.php | <!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta Information -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="shortcut icon" href="{{ asset('/vendor/waterline/img/favico... | php | MIT | 03e60f83d73fd1edaa8c0d2f3d3d1511ce2f6a57 | 2026-01-05T02:31:32.169075Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/CouponableServiceProvider.php | src/CouponableServiceProvider.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables;
use MichaelRubel\Couponables\Commands\MakeCouponCommand;
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
use MichaelRubel\Couponables\Models\Contracts\CouponPivotContract;
use MichaelRubel\Couponables\Models\Coupon;
use MichaelRubel\Cou... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Exceptions/OverQuantityException.php | src/Exceptions/OverQuantityException.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Exceptions;
class OverQuantityException extends CouponException
{
/**
* @var string
*/
protected $message = 'The coupon is exhausted.';
/**
* @var int
*/
protected $code = 400;
}
| php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Exceptions/InvalidCouponException.php | src/Exceptions/InvalidCouponException.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Exceptions;
class InvalidCouponException extends CouponException
{
/**
* @var string
*/
protected $message = 'The coupon is invalid.';
/**
* @var int
*/
protected $code = 404;
}
| php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Exceptions/InvalidCouponValueException.php | src/Exceptions/InvalidCouponValueException.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Exceptions;
class InvalidCouponValueException extends CouponException
{
/**
* @var string
*/
protected $message = 'The coupon value cannot be zero or less.';
/**
* @var int
*/
protected $code = 500;
}
| php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Exceptions/CouponDisabledException.php | src/Exceptions/CouponDisabledException.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Exceptions;
class CouponDisabledException extends CouponException
{
/**
* @var string
*/
protected $message = 'The coupon is disabled.';
/**
* @var int
*/
protected $code = 400;
}
| php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Exceptions/OverLimitException.php | src/Exceptions/OverLimitException.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Exceptions;
class OverLimitException extends CouponException
{
/**
* @var string
*/
protected $message = 'Coupon usage limit has been reached.';
/**
* @var int
*/
protected $code = 403;
}
| php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Exceptions/InvalidCouponTypeException.php | src/Exceptions/InvalidCouponTypeException.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Exceptions;
class InvalidCouponTypeException extends CouponException
{
/**
* @var string
*/
protected $message = 'The coupon type is invalid. Take a look at `CouponContract` and review your `type` table column value.';
/**
... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Exceptions/NotAllowedToRedeemException.php | src/Exceptions/NotAllowedToRedeemException.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Exceptions;
class NotAllowedToRedeemException extends CouponException
{
/**
* @var string
*/
protected $message = 'You cannot use this coupon.';
/**
* @var int
*/
protected $code = 403;
}
| php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Exceptions/CouponExpiredException.php | src/Exceptions/CouponExpiredException.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Exceptions;
class CouponExpiredException extends CouponException
{
/**
* @var string
*/
protected $message = 'The coupon is expired.';
/**
* @var int
*/
protected $code = 400;
}
| php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Exceptions/CouponException.php | src/Exceptions/CouponException.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Exceptions;
class CouponException extends \Exception
{
// generic exception
}
| php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Traits/HasCoupons.php | src/Traits/HasCoupons.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Traits;
use Closure;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphToMany;
use Illuminate\Support\Str;
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
use MichaelRubel\Couponables\Services\Contra... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Traits/Concerns/GeneratesCoupons.php | src/Traits/Concerns/GeneratesCoupons.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Traits\Concerns;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
trait GeneratesCoupons
{
/**
* Generate the coupon codes.
... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Traits/Concerns/CalculatesCosts.php | src/Traits/Concerns/CalculatesCosts.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Traits\Concerns;
use MichaelRubel\Couponables\Exceptions\InvalidCouponTypeException;
use MichaelRubel\Couponables\Exceptions\InvalidCouponValueException;
trait CalculatesCosts
{
/**
* Calculate the output value based on the coupon type.
... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Services/CouponService.php | src/Services/CouponService.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Services;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Traits\Macroable;
use MichaelRubel\Couponables\Events\CouponDisabled;
use MichaelRubel\Couponables\Events\CouponExpired;
use MichaelRubel\Couponables\Events\CouponIsOverLimit;
us... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Services/Contracts/CouponServiceContract.php | src/Services/Contracts/CouponServiceContract.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Services\Contracts;
use Illuminate\Database\Eloquent\Model;
use MichaelRubel\Couponables\Exceptions\CouponDisabledException;
use MichaelRubel\Couponables\Exceptions\CouponException;
use MichaelRubel\Couponables\Exceptions\CouponExpiredException;
use M... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Models/Couponable.php | src/Models/Couponable.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Models;
use Illuminate\Database\Eloquent\Relations\MorphPivot;
use MichaelRubel\Couponables\Models\Contracts\CouponPivotContract;
use MichaelRubel\Couponables\Models\Traits\DefinesPivotColumns;
use MichaelRubel\Couponables\Models\Traits\DefinesPivotRe... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Models/Coupon.php | src/Models/Coupon.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Models;
use Carbon\CarbonInterface;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use MichaelRubel\Coupon... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Models/Traits/DefinesPivotRelations.php | src/Models/Traits/DefinesPivotRelations.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Models\Traits;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use MichaelRubel\Couponables\Models\Coupon;
trait DefinesPivotRelations
{
/**
* @return BelongsTo
*/
public function coupon(): BelongsTo
{
return $this... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Models/Traits/DefinesModelRelations.php | src/Models/Traits/DefinesModelRelations.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Models\Traits;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\MorphTo;
use MichaelRubel\Couponables\Models\Contracts\CouponPivotContract;
trait DefinesModelRelati... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Models/Traits/DefinesColumnChecks.php | src/Models/Traits/DefinesColumnChecks.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Models\Traits;
use Illuminate\Database\Eloquent\Model;
trait DefinesColumnChecks
{
/**
* @return bool
*/
private function isMorphColumnsFilled(): bool
{
return ! is_null($this->{static::getRedeemerTypeColumn()})
... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Models/Traits/DefinesColumns.php | src/Models/Traits/DefinesColumns.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Models\Traits;
trait DefinesColumns
{
public function getCodeColumn(): string
{
return 'code';
}
public function getTypeColumn(): string
{
return 'type';
}
public function getValueColumn(): string
{
... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Models/Traits/DefinesPivotColumns.php | src/Models/Traits/DefinesPivotColumns.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Models\Traits;
trait DefinesPivotColumns
{
/**
* @return string
*/
public function getRedeemedAtColumn(): string
{
return 'redeemed_at';
}
/**
* @return string
*/
public function getRedeemedTypeColu... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Models/Contracts/CouponPivotContract.php | src/Models/Contracts/CouponPivotContract.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Models\Contracts;
interface CouponPivotContract
{
public function getRedeemedTypeColumn(): string;
public function getRedeemedIdColumn(): string;
public function getRedeemedAtColumn(): string;
public function getCreatedAtColumn(): s... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Models/Contracts/CouponContract.php | src/Models/Contracts/CouponContract.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Models\Contracts;
use Carbon\CarbonInterface;
use Illuminate\Database\Eloquent\Collection;
use MichaelRubel\Couponables\Models\Coupon;
/**
* @see Coupon
*
* @property string $code
* @property string|null $type
* @property string|null $value
* @... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Models/Factories/CouponFactory.php | src/Models/Factories/CouponFactory.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Models\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use MichaelRubel\Couponables\Models\Coupon;
/**
* @extends Factory<Coupon>
*/
class CouponFactory extends Factory
{
/**
* The name of the factory's corresponding model.
... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Commands/MakeCouponCommand.php | src/Commands/MakeCouponCommand.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Commands;
use Illuminate\Console\Command;
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
class MakeCouponCommand extends Command
{
/**
* @var string
*/
protected $signature = 'make:coupon
{... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Events/CouponExpired.php | src/Events/CouponExpired.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Events;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\SerializesModels;
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
class CouponExpired
{
use SerializesModels;
/**
* @return void
*/
public funct... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Events/NotAllowedToRedeem.php | src/Events/NotAllowedToRedeem.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Events;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\SerializesModels;
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
class NotAllowedToRedeem
{
use SerializesModels;
/**
* @return void
*/
public ... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Events/CouponVerified.php | src/Events/CouponVerified.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Events;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\SerializesModels;
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
class CouponVerified
{
use SerializesModels;
/**
* @return void
*/
public func... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Events/CouponIsOverQuantity.php | src/Events/CouponIsOverQuantity.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Events;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\SerializesModels;
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
class CouponIsOverQuantity
{
use SerializesModels;
/**
* @return void
*/
publi... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Events/CouponRedeemed.php | src/Events/CouponRedeemed.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Events;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\SerializesModels;
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
class CouponRedeemed
{
use SerializesModels;
/**
* @return void
*/
public func... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Events/CouponDisabled.php | src/Events/CouponDisabled.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Events;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\SerializesModels;
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
class CouponDisabled
{
use SerializesModels;
/**
* @return void
*/
public func... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/src/Events/CouponIsOverLimit.php | src/Events/CouponIsOverLimit.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Events;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\SerializesModels;
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
class CouponIsOverLimit
{
use SerializesModels;
/**
* @return void
*/
public f... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/CalculationsTest.php | tests/CalculationsTest.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests;
use MichaelRubel\Couponables\Exceptions\InvalidCouponTypeException;
use MichaelRubel\Couponables\Exceptions\InvalidCouponValueException;
use MichaelRubel\Couponables\Models\Coupon;
class CalculationsTest extends TestCase
{
/** @test */
... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/CouponsTest.php | tests/CouponsTest.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Hash;
use Illuminate\Validation\ValidationException;
use MichaelRubel\Couponables\Events\CouponDisabled;
use MichaelRubel\Couponables\Events... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/TestCase.php | tests/TestCase.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests;
use Illuminate\Foundation\Testing\Concerns\InteractsWithViews;
use Illuminate\Foundation\Testing\RefreshDatabase;
use MichaelRubel\Couponables\CouponableServiceProvider;
use Orchestra\Testbench\TestCase as Orchestra;
class TestCase extends Orc... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/PackageConfigurationTest.php | tests/PackageConfigurationTest.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests;
use MichaelRubel\Couponables\Commands\MakeCouponCommand;
use MichaelRubel\Couponables\CouponableServiceProvider;
class PackageConfigurationTest extends TestCase
{
/** @test */
public function testProviderHasProperConfiguration()
{
... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/BasicOperationsTest.php | tests/BasicOperationsTest.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests;
use Illuminate\Support\Facades\Hash;
use MichaelRubel\Couponables\Models\Coupon;
use MichaelRubel\Couponables\Models\Couponable;
use MichaelRubel\Couponables\Tests\Stubs\Models\User;
class BasicOperationsTest extends TestCase
{
/**
* ... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/CommandsTest.php | tests/CommandsTest.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests;
use Carbon\Carbon;
use MichaelRubel\Couponables\Tests\Stubs\Models\User;
class CommandsTest extends TestCase
{
/**
* @var void
*/
public function setUp(): void
{
parent::setUp();
Carbon::setTestNow('2022-... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/MacroabilityTest.php | tests/MacroabilityTest.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests;
use MichaelRubel\Couponables\Models\Coupon;
use MichaelRubel\Couponables\Services\Contracts\CouponServiceContract;
use MichaelRubel\Couponables\Services\CouponService;
class MacroabilityTest extends TestCase
{
/**
* @var void
*/
... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/OverrideabilityTest.php | tests/OverrideabilityTest.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Hash;
use MichaelRubel\Couponables\CouponableServiceProvider;
use MichaelRubel\Couponables\Models\Contracts\CouponPivotContract;
use MichaelRubel\Couponables\Tests\Stubs\Models\F... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/Stubs/Migrations/2014_10_12_000000_create_users_table.php | tests/Stubs/Migrations/2014_10_12_000000_create_users_table.php | <?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::creat... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/Stubs/Migrations/2014_10_12_000002_create_couponables_test_table.php | tests/Stubs/Migrations/2014_10_12_000002_create_couponables_test_table.php | <?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Str;
use MichaelRubel\Couponables\Models\Coupon;
return new class extends Migration
{
/**
* Run the migrations.
*
* @... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/Stubs/Migrations/2014_10_12_000001_create_coupons_test_table.php | tests/Stubs/Migrations/2014_10_12_000001_create_coupons_test_table.php | <?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::creat... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/Stubs/Models/FakeCouponable.php | tests/Stubs/Models/FakeCouponable.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests\Stubs\Models;
use MichaelRubel\Couponables\Models\Contracts\CouponPivotContract;
use MichaelRubel\Couponables\Models\Couponable;
class FakeCouponable extends Couponable implements CouponPivotContract
{
/**
* The attributes that should ... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/Stubs/Models/User.php | tests/Stubs/Models/User.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests\Stubs\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use MichaelRubel\Couponables\Traits\HasCoupons;
class User extends Authenticatable
{
use HasCoupons;
/**
* The attributes that aren't mass assignable.
*
... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/Stubs/Models/FakeCoupon.php | tests/Stubs/Models/FakeCoupon.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests\Stubs\Models;
use Illuminate\Database\Eloquent\Factories\Factory;
use MichaelRubel\Couponables\Models\Contracts\CouponContract;
use MichaelRubel\Couponables\Models\Coupon;
use MichaelRubel\Couponables\Tests\Stubs\Factories\FakeCouponFactory;
cl... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/Stubs/Models/Course.php | tests/Stubs/Models/Course.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests\Stubs\Models;
use Illuminate\Database\Eloquent\Model;
use MichaelRubel\Couponables\Traits\HasCoupons;
class Course extends Model
{
use HasCoupons;
/**
* The attributes that aren't mass assignable.
*
* @var array<string>|... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/tests/Stubs/Factories/FakeCouponFactory.php | tests/Stubs/Factories/FakeCouponFactory.php | <?php
declare(strict_types=1);
namespace MichaelRubel\Couponables\Tests\Stubs\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use MichaelRubel\Couponables\Tests\Stubs\Models\FakeCoupon;
/**
* @extends Factory<FakeCoupon>
*/
class FakeCouponFactory extends Factory
{
/**
* The name of the fa... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
michael-rubel/laravel-couponables | https://github.com/michael-rubel/laravel-couponables/blob/6522d89ed44be45ed38bba221d2cf9aa2edde82e/config/couponables.php | config/couponables.php | <?php
declare(strict_types=1);
return [
/*
|--------------------------------------------------------------------------
| Laravel Couponables Configuration
|--------------------------------------------------------------------------
|
| Model to use by the package.
|
| Default: `... | php | MIT | 6522d89ed44be45ed38bba221d2cf9aa2edde82e | 2026-01-05T02:31:52.856367Z | false |
sarfraznawaz2005/servermonitor | https://github.com/sarfraznawaz2005/servermonitor/blob/fa6e02ef8eacc38a91cbbc96ff5266bac65a1b15/src/Notifier.php | src/Notifier.php | <?php
/**
* Created by PhpStorm.
* User: Sarfraz
* Date: 7/15/2019
* Time: 4:50 PM
*/
namespace Sarfraznawaz2005\ServerMonitor;
use Sarfraznawaz2005\ServerMonitor\Checks\Check;
class Notifier
{
/**
* Sends notification/alert if a check fails.
*
* @param Check $check
* @param array $confi... | php | MIT | fa6e02ef8eacc38a91cbbc96ff5266bac65a1b15 | 2026-01-05T02:32:05.525197Z | false |
sarfraznawaz2005/servermonitor | https://github.com/sarfraznawaz2005/servermonitor/blob/fa6e02ef8eacc38a91cbbc96ff5266bac65a1b15/src/ServiceProvider.php | src/ServiceProvider.php | <?php
namespace Sarfraznawaz2005\ServerMonitor;
use Illuminate\Routing\Router;
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
use Sarfraznawaz2005\ServerMonitor\Console\CheckCommand;
use Sarfraznawaz2005\ServerMonitor\Console\StatusCommand;
use Sarfraznawaz2005\ServerMonitor\Http\Middleware\BasicAuth;... | php | MIT | fa6e02ef8eacc38a91cbbc96ff5266bac65a1b15 | 2026-01-05T02:32:05.525197Z | false |
sarfraznawaz2005/servermonitor | https://github.com/sarfraznawaz2005/servermonitor/blob/fa6e02ef8eacc38a91cbbc96ff5266bac65a1b15/src/ServerMonitor.php | src/ServerMonitor.php | <?php
/**
* Created by PhpStorm.
* User: Sarfraz
* Date: 7/11/2019
* Time: 1:38 PM
*/
namespace Sarfraznawaz2005\ServerMonitor;
use Carbon\Carbon;
class ServerMonitor
{
public $cacheFile;
public function __construct()
{
$this->cacheFile = storage_path('servermonitor.cache');
}
/**
... | php | MIT | fa6e02ef8eacc38a91cbbc96ff5266bac65a1b15 | 2026-01-05T02:32:05.525197Z | false |
sarfraznawaz2005/servermonitor | https://github.com/sarfraznawaz2005/servermonitor/blob/fa6e02ef8eacc38a91cbbc96ff5266bac65a1b15/src/Checks/Check.php | src/Checks/Check.php | <?php
/**
* Created by PhpStorm.
* User: Sarfraz
* Date: 7/10/2019
* Time: 2:40 PM
*/
namespace Sarfraznawaz2005\ServerMonitor\Checks;
interface Check
{
/**
* Perform the actual verification of this check.
*
* @param array $config
* @return bool
*/
public function check(array $co... | php | MIT | fa6e02ef8eacc38a91cbbc96ff5266bac65a1b15 | 2026-01-05T02:32:05.525197Z | false |
sarfraznawaz2005/servermonitor | https://github.com/sarfraznawaz2005/servermonitor/blob/fa6e02ef8eacc38a91cbbc96ff5266bac65a1b15/src/Checks/Application/UnwantedPhpExtensionsAreDisabled.php | src/Checks/Application/UnwantedPhpExtensionsAreDisabled.php | <?php
/**
* Created by PhpStorm.
* User: Sarfraz
* Date: 7/10/2019
* Time: 2:39 PM
*/
namespace Sarfraznawaz2005\ServerMonitor\Checks\Application;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use Sarfraznawaz2005\ServerMonitor\Checks\Check;
class UnwantedPhpExtensionsAreDisabled implements Che... | php | MIT | fa6e02ef8eacc38a91cbbc96ff5266bac65a1b15 | 2026-01-05T02:32:05.525197Z | false |
sarfraznawaz2005/servermonitor | https://github.com/sarfraznawaz2005/servermonitor/blob/fa6e02ef8eacc38a91cbbc96ff5266bac65a1b15/src/Checks/Application/RoutesAreCached.php | src/Checks/Application/RoutesAreCached.php | <?php
/**
* Created by PhpStorm.
* User: Sarfraz
* Date: 7/10/2019
* Time: 2:39 PM
*/
namespace Sarfraznawaz2005\ServerMonitor\Checks\Application;
use Sarfraznawaz2005\ServerMonitor\Checks\Check;
class RoutesAreCached implements Check
{
/**
* Perform the actual verification of this check.
*
*... | php | MIT | fa6e02ef8eacc38a91cbbc96ff5266bac65a1b15 | 2026-01-05T02:32:05.525197Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.