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
sebgiroux/Cassandra-Cluster-Admin
https://github.com/sebgiroux/Cassandra-Cluster-Admin/blob/39d146efe017edcf2cb2544c66197033963a516e/views/columnfamily_getkey.php
views/columnfamily_getkey.php
<ul class="breadcrumb"> <li> <a href="index.php"><?php echo $cluster_name; ?></a> <span class="divider">/</span> </li> <li> <a href="describe_keyspace.php?keyspace_name=<?php echo $keyspace_name; ?>"><?php echo $keyspace_name; ?></a> <span class="divider">/</span> </li> <li> <a href="describe_columnfamily.ph...
php
MIT
39d146efe017edcf2cb2544c66197033963a516e
2026-01-05T02:13:00.639913Z
false
sebgiroux/Cassandra-Cluster-Admin
https://github.com/sebgiroux/Cassandra-Cluster-Admin/blob/39d146efe017edcf2cb2544c66197033963a516e/views/columnfamily_row_counter.php
views/columnfamily_row_counter.php
<table border="1" cellpadding="5" class="table table-bordered table-striped"> <?php if (!is_null($scf_key)): ?> <tr> <td colspan="3"> <?php echo $scf_key; ?> </td> </tr> <?php endif; ?> <?php foreach ($row as $column => $value): ?> <tr> <td><?php echo $column; ?></td> <td><pre><?php echo $valu...
php
MIT
39d146efe017edcf2cb2544c66197033963a516e
2026-01-05T02:13:00.639913Z
false
sebgiroux/Cassandra-Cluster-Admin
https://github.com/sebgiroux/Cassandra-Cluster-Admin/blob/39d146efe017edcf2cb2544c66197033963a516e/views/login.php
views/login.php
<?php echo $login_error; ?> <?php echo $you_must_be_logged; ?> <form method="post" action="login.php" class="well"> <div> <label for="username">Username:</label> <input type="text" id="username" name="username" /> </div> <div> <label for="password">Password:</label> <input type="password" id="password" na...
php
MIT
39d146efe017edcf2cb2544c66197033963a516e
2026-01-05T02:13:00.639913Z
false
sebgiroux/Cassandra-Cluster-Admin
https://github.com/sebgiroux/Cassandra-Cluster-Admin/blob/39d146efe017edcf2cb2544c66197033963a516e/views/describe_secondary_index.php
views/describe_secondary_index.php
<a href="#" onclick="location.href='describe_columnfamily.php?keyspace_name=<?php echo $keyspace_name; ?>&amp;columnfamily_name=<?php echo $columnfamily_name; ?>&action=drop_index&column=<?php echo $one_si['name']; ?>'" class="btn btn-large btn-primary" style="color: #fff; text-decoration: none;">Drop Index</a> <table...
php
MIT
39d146efe017edcf2cb2544c66197033963a516e
2026-01-05T02:13:00.639913Z
false
sebgiroux/Cassandra-Cluster-Admin
https://github.com/sebgiroux/Cassandra-Cluster-Admin/blob/39d146efe017edcf2cb2544c66197033963a516e/views/jmx_missing_dependencies.php
views/jmx_missing_dependencies.php
<?php echo displayErrorMessage('jmx_missing_curl_php_extension'); ?>
php
MIT
39d146efe017edcf2cb2544c66197033963a516e
2026-01-05T02:13:00.639913Z
false
sebgiroux/Cassandra-Cluster-Admin
https://github.com/sebgiroux/Cassandra-Cluster-Admin/blob/39d146efe017edcf2cb2544c66197033963a516e/views/header.php
views/header.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title><?php echo getPageTitle(); ?></title> <meta name="title" content="Ca...
php
MIT
39d146efe017edcf2cb2544c66197033963a516e
2026-01-05T02:13:00.639913Z
false
sebgiroux/Cassandra-Cluster-Admin
https://github.com/sebgiroux/Cassandra-Cluster-Admin/blob/39d146efe017edcf2cb2544c66197033963a516e/views/create_edit_secondary_index.php
views/create_edit_secondary_index.php
<ul class="breadcrumb"> <li> <a href="index.php"><?php echo $cluster_name; ?></a> <span class="divider">/</span> </li> <li> <a href="describe_keyspace.php?keyspace_name=<?php echo $keyspace_name; ?>"><?php echo $keyspace_name; ?></a> <span class="divider">/</span> </li> <li> <a href="describe_columnfamily.ph...
php
MIT
39d146efe017edcf2cb2544c66197033963a516e
2026-01-05T02:13:00.639913Z
false
sebgiroux/Cassandra-Cluster-Admin
https://github.com/sebgiroux/Cassandra-Cluster-Admin/blob/39d146efe017edcf2cb2544c66197033963a516e/views/mx4j_not_active.php
views/mx4j_not_active.php
<ul class="breadcrumb"> <li> <a href="index.php"><?php echo $cluster_name; ?></a> <span class="divider">/</span> </li> <li class="active"> JMX Stats </li> </ul> <p>It looks like MX4J is not actived on the node (<?php echo $jmx_host; ?>) you're trying to see JMX stats, or node is not alive.</p> <div style="mar...
php
MIT
39d146efe017edcf2cb2544c66197033963a516e
2026-01-05T02:13:00.639913Z
false
sebgiroux/Cassandra-Cluster-Admin
https://github.com/sebgiroux/Cassandra-Cluster-Admin/blob/39d146efe017edcf2cb2544c66197033963a516e/views/create_edit_columnfamily.php
views/create_edit_columnfamily.php
<ul class="breadcrumb"> <li> <a href="index.php"><?php echo $cluster_name; ?></a> <span class="divider">/</span> </li> <li> <a href="describe_keyspace.php?keyspace_name=<?php echo $keyspace_name; ?>"><?php echo $keyspace_name; ?></a> <span class="divider">/</span> </li> <?php if (!empty($columnfamily_name)): e...
php
MIT
39d146efe017edcf2cb2544c66197033963a516e
2026-01-05T02:13:00.639913Z
false
sebgiroux/Cassandra-Cluster-Admin
https://github.com/sebgiroux/Cassandra-Cluster-Admin/blob/39d146efe017edcf2cb2544c66197033963a516e/views/cluster_info.php
views/cluster_info.php
<table id="navigation" class="table table-bordered table-striped"> <tr> <td onclick="document.location.href='./'"><a href="./">Schema</a></td> <td onclick="document.location.href='?nav=cluster'"><a href="?nav=cluster">Cluster</a></td> </tr> </table> <?php echo $success_message; ?> <?php echo $error_message; ?> ...
php
MIT
39d146efe017edcf2cb2544c66197033963a516e
2026-01-05T02:13:00.639913Z
false
sebgiroux/Cassandra-Cluster-Admin
https://github.com/sebgiroux/Cassandra-Cluster-Admin/blob/39d146efe017edcf2cb2544c66197033963a516e/helper/ClusterHelper.php
helper/ClusterHelper.php
<?php /* Cassandra Cluster Admin Helper class to get data from the config array which can contains multiple Cassandra cluster @author Sébastien Giroux @copyright All rights reserved - 2011 */ require('include/autoload.php'); use phpcassa\SystemManager; class ClusterHelper { private $cassand...
php
MIT
39d146efe017edcf2cb2544c66197033963a516e
2026-01-05T02:13:00.639913Z
false
sebgiroux/Cassandra-Cluster-Admin
https://github.com/sebgiroux/Cassandra-Cluster-Admin/blob/39d146efe017edcf2cb2544c66197033963a516e/helper/ColumnFamilyHelper.php
helper/ColumnFamilyHelper.php
<?php /* Cassandra Cluster Admin Helper class to display column family data easily @author Sébastien Giroux @copyright All rights reserved - 2011 */ class ColumnFamilyHelper { /* Return the column family definition for the specified keyspace name and column family name @param $keyspace_nam...
php
MIT
39d146efe017edcf2cb2544c66197033963a516e
2026-01-05T02:13:00.639913Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Exceptions/InsufficientPermissionsException.php
src/Exceptions/InsufficientPermissionsException.php
<?php namespace SecTheater\Marketplace\Exceptions; use Exception; class InsufficientPermissionException extends Exception { }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Exceptions/PropertyIsNotEnabledExpcetion.php
src/Exceptions/PropertyIsNotEnabledExpcetion.php
<?php namespace SecTheater\Marketplace\Exceptions; use Exception; class PropertyIsNotEnabledExpcetion extends Exception { protected $message = 'Property Is not enabled , you might need to check your config, or spelling.'; }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Exceptions/UndefinedMethodException.php
src/Exceptions/UndefinedMethodException.php
<?php namespace SecTheater\Marketplace\Exceptions; use Exception; class UndefinedMethodException extends Exception { protected $message = 'Call To Undefined Method'; }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Exceptions/ProductAttributesDoesNotMatchException.php
src/Exceptions/ProductAttributesDoesNotMatchException.php
<?php namespace SecTheater\Marketplace\Exceptions; use Exception; class ProductAttributesDoesNotMatchException extends Exception { protected $message = 'Product Attributes do not match the passed attributes'; }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Exceptions/ColumnNotFoundException.php
src/Exceptions/ColumnNotFoundException.php
<?php namespace SecTheater\Marketplace\Exceptions; use Exception; class ColumnNotFoundException extends Exception { protected $message = 'Column Does not exist in the table.'; }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Exceptions/CouponCanNotBePurchasedException.php
src/Exceptions/CouponCanNotBePurchasedException.php
<?php namespace SecTheater\Marketplace\Exceptions; use Exception; class CouponCanNotBePurchasedException extends Exception { // }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Exceptions/ProductDoesNotExist.php
src/Exceptions/ProductDoesNotExist.php
<?php namespace SecTheater\Marketplace\Exceptions; use Exception; class ProductDoesNotExist extends Exception { protected $message = 'Order Does not exist for this user.'; }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Exceptions/InsufficientProductQuantity.php
src/Exceptions/InsufficientProductQuantity.php
<?php namespace SecTheater\Marketplace\Exceptions; use Exception; class InsufficientProductQuantity extends Exception { protected $message = 'Insufficient Quantity For the applied product.'; }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Exceptions/CouponExpiredException.php
src/Exceptions/CouponExpiredException.php
<?php namespace SecTheater\Marketplace\Exceptions; use Exception; class CouponExpiredException extends Exception { // }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Exceptions/ProductAlreadyExistsException.php
src/Exceptions/ProductAlreadyExistsException.php
<?php namespace SecTheater\Marketplace\Exceptions; use Exception; class ProductAlreadyExistsException extends Exception { protected $message = 'Product Already Exists, so are attributes'; }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Helpers/Helpers.php
src/Helpers/Helpers.php
<?php use SecTheater\Marketplace\Exceptions\UndefinedMethodException; if (!function_exists('package_path')) { function package_path($path = null) { return base_path('vendor/sectheater/marketplace/src').DIRECTORY_SEPARATOR.ltrim($path, '/'); } } if (!function_exists('model_exists')) { function m...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Publishables/migrations/2018_08_10_220150_create_market_place_table.php
src/Publishables/migrations/2018_08_10_220150_create_market_place_table.php
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMarketPlaceTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', fun...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Publishables/config/market.php
src/Publishables/config/market.php
<?php return [ 'product' => [ 'review' => true, ], 'cart' => [ 'tax' => [ 'enabled' => true, 'percentage' => 10 ], ], 'models' => [ 'namespace' => '\\App\\', 'user' => [ ], 'package' => [ 'cart' => SecThea...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Publishables/config/countries.php
src/Publishables/config/countries.php
<?php return [ 'AF' => 'Afghanistan', 'AX' => 'Aland Islands', 'AL' => 'Albania', 'DZ' => 'Algeria', 'AS' => 'American Samoa', 'AD' => 'Andorra', 'AO' => 'Angola', 'AI' => 'Anguilla', 'AQ' => 'Antarctica', 'AG' => 'Antigua And Barbuda', 'AR' => 'Argentina', 'AM' => 'Arme...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Publishables/seeders/RolesTableSeeder.php
src/Publishables/seeders/RolesTableSeeder.php
<?php use Illuminate\Database\Seeder; use SecTheater\Marketplace\Models\EloquentRole; class RolesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $user = EloquentRole::create([ 'name' => 'Normal User', ...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Traits/CanBeCarted.php
src/Traits/CanBeCarted.php
<?php namespace SecTheater\Marketplace\Traits; use SecTheater\Marketplace\Contracts\CartInterface; use SecTheater\Marketplace\Contracts\UserInterface; use SecTheater\Marketplace\Exceptions\InsufficientProductQuantity; use SecTheater\Marketplace\Exceptions\ProductAttributesDoesNotMatchException; use SecTheater\Marketpl...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Traits/Roles.php
src/Traits/Roles.php
<?php namespace SecTheater\Marketplace\Traits\Roles; use SecTheater\Marketplace\Exceptions\InsufficientPermissionsException; trait Roles { public function hasAllRole($roles) { if (is_array($roles)) { foreach ($roles as $role) { if (!$this->hasRole($role)) { ...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Observers/BaseObserver.php
src/Observers/BaseObserver.php
<?php namespace SecTheater\Marketplace\Observers; use Illuminate\Database\Eloquent\Model; class BaseObserver { protected $grammar = [ 'slug' => 'str_slug', 'title' => 'title_case', 'studly' => 'studly_case', 'firstUpper' => 'ucfirst', 'first...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Observers/CouponObserver.php
src/Observers/CouponObserver.php
<?php namespace SecTheater\Marketplace\Observers; use SecTheater\Marketplace\Models\EloquentCoupon; class CouponObserver { public function creating(EloquentCoupon $coupon) { if (!$coupon->code) { $coupon->code = str_random(32); } if (auth()->check() && ! $coupon->user_id) { $coupon->user_...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Observers/ProductObserver.php
src/Observers/ProductObserver.php
<?php namespace SecTheater\Marketplace\Observers; use SecTheater\Marketplace\Models\EloquentProduct; class ProductObserver { public function creating(EloquentProduct $product) { $product->user_id = auth()->id(); if (auth()->user()->can('review-product',$product)) { $product->reviewed_by = auth()->id(); $p...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/TestCase.php
src/tests/TestCase.php
<?php namespace SecTheater\Marketplace\Tests; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; use SecTheater\Marketplace\Models\EloquentRole; use SecTheater\Marketplace\Models\EloquentUser as User; abstract class TestCase extends BaseTestCase { use C...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/CreatesApplication.php
src/tests/CreatesApplication.php
<?php namespace SecTheater\Marketplace\Tests; use Illuminate\Contracts\Console\Kernel; use Illuminate\Database\Eloquent\Factory as EloquentFactory; use SecTheater\Marketplace\Providers\EloquentEventServiceProvider; use SecTheater\Marketplace\Providers\EloquentServiceProvider; trait CreatesApplication { /** *...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/factories/ProductVariationTypeFactory.php
src/tests/factories/ProductVariationTypeFactory.php
<?php use Faker\Generator as Faker; use SecTheater\Marketplace\Models\EloquentProductVariationType; $factory->define(EloquentProductVariationType::class, function (Faker $faker) { return [ 'name' => $faker->unique()->name, 'stock' => $faker->numberBetween(3,50) ]; });
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/factories/UserFactory.php
src/tests/factories/UserFactory.php
<?php use Carbon\Carbon; use Faker\Generator as Faker; /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | This directory should contain each of the model factory definitions for | your applica...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/factories/ProductVariationFactory.php
src/tests/factories/ProductVariationFactory.php
<?php use Faker\Generator as Faker; use SecTheater\Marketplace\Models\EloquentProduct; use SecTheater\Marketplace\Models\EloquentProductVariation; $factory->define(EloquentProductVariation::class, function (Faker $faker) { return [ 'product_id' => factory(EloquentProduct::class)->create()->id, 'details' => ['col...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/CartTrait.php
src/tests/Unit/CartTrait.php
<?php namespace SecTheater\Marketplace\Tests\Unit; use SecTheater\Marketplace\Models\EloquentCart as Cart; use SecTheater\Marketplace\Models\EloquentCategory as Category; use SecTheater\Marketplace\Models\EloquentProduct as Product; use SecTheater\Marketplace\Models\EloquentProductVariation as ProductVariation; use S...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Observers/ProductObserverTest.php
src/tests/Unit/Integration/Observers/ProductObserverTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Observers; use SecTheater\Marketplace\Models\EloquentProduct; use SecTheater\Marketplace\Models\EloquentUser; use SecTheater\Marketplace\Tests\TestCase; class ProductObserverTest extends TestCase { /** @test */ public function it_fires_creating_ev...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Observers/CouponObserverTest.php
src/tests/Unit/Integration/Observers/CouponObserverTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Observers; use SecTheater\Marketplace\Models\EloquentCoupon; use SecTheater\Marketplace\Models\EloquentUser; use SecTheater\Marketplace\Tests\TestCase; class CouponObserverTest extends TestCase { /** @test */ public function it_fires_creating_even...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Models/ProductVariationTypeTest.php
src/tests/Unit/Integration/Models/ProductVariationTypeTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Models; use SecTheater\Marketplace\Models\EloquentProduct as Product; use SecTheater\Marketplace\Models\EloquentProductVariation as ProductVariation; use SecTheater\Marketplace\Models\EloquentProductVariationType as ProductVariationType; use SecTheater\Mar...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Models/CouponTest.php
src/tests/Unit/Integration/Models/CouponTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Models; use SecTheater\Marketplace\Models\EloquentCoupon as Coupon; use SecTheater\Marketplace\Models\EloquentUser as User; use SecTheater\Marketplace\Tests\TestCase; class CouponTest extends TestCase { public function setUp() { parent::setUp(); $thi...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Models/CategoryTest.php
src/tests/Unit/Integration/Models/CategoryTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Models; use SecTheater\Marketplace\Models\EloquentCategory as Category; use SecTheater\Marketplace\Models\EloquentProduct as Product; use SecTheater\Marketplace\Models\EloquentSale as Sale; use SecTheater\Marketplace\Tests\TestCase; class CategoryTest ext...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Models/ProductTest.php
src/tests/Unit/Integration/Models/ProductTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Models; use Carbon\Carbon; use SecTheater\Marketplace\Models\EloquentCategory as Category; use SecTheater\Marketplace\Models\EloquentCoupon as Coupon; use SecTheater\Marketplace\Models\EloquentProduct as Product; use SecTheater\Marketplace\Models\EloquentP...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Models/ProductVariationTest.php
src/tests/Unit/Integration/Models/ProductVariationTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Models; use SecTheater\Marketplace\Models\EloquentProduct as Product; use SecTheater\Marketplace\Models\EloquentProductVariation as ProductVariation; use SecTheater\Marketplace\Models\EloquentProductVariationType as ProductVariationType; use SecTheater\Mar...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Repositories/ProductVariationTypeRepositoryTest.php
src/tests/Unit/Integration/Repositories/ProductVariationTypeRepositoryTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Repositories; use SecTheater\Marketplace\Exceptions\InsufficientProductQuantity; use SecTheater\Marketplace\Models\EloquentProduct as Product; use SecTheater\Marketplace\Models\EloquentProductVariation as ProductVariation; use SecTheater\Marketplace\Models\...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Repositories/UserRepositoryTest.php
src/tests/Unit/Integration/Repositories/UserRepositoryTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Repositories; use Carbon\Carbon; use Illuminate\Database\Eloquent\ModelNotFoundException; use SecTheater\Marketplace\Exceptions\CouponCanNotBePurchasedException; use SecTheater\Marketplace\Exceptions\CouponExpiredException; use SecTheater\Marketplace\Model...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Repositories/ProductRepositoryTest.php
src/tests/Unit/Integration/Repositories/ProductRepositoryTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Repositories; use Carbon\Carbon; use Illuminate\Support\Collection; use SecTheater\Marketplace\Models\EloquentCart as Cart; use SecTheater\Marketplace\Models\EloquentCategory as Category; use SecTheater\Marketplace\Models\EloquentProduct as Product; use Se...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Repositories/CouponRepositoryTest.php
src/tests/Unit/Integration/Repositories/CouponRepositoryTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Repositories; use Carbon\Carbon; use Illuminate\Database\Eloquent\ModelNotFoundException; use SecTheater\Marketplace\Exceptions\CouponCanNotBePurchasedException; use SecTheater\Marketplace\Exceptions\CouponExpiredException; use SecTheater\Marketplace\Model...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Repositories/WishlistRepositoryTest.php
src/tests/Unit/Integration/Repositories/WishlistRepositoryTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Repositories; use Carbon\Carbon; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Support\Collection; use SecTheater\Marketplace\Exceptions\InsufficientProductQuantity; use SecTheater\Marketplace\Models\EloquentCart as Cart; use SecT...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Integration/Repositories/ProductVariationRepositoryTest.php
src/tests/Unit/Integration/Repositories/ProductVariationRepositoryTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Integration\Repositories; use SecTheater\Marketplace\Models\EloquentProduct as Product; use SecTheater\Marketplace\Models\EloquentProductVariation as ProductVariation ; use SecTheater\Marketplace\Models\EloquentProductVariationType as ProductVariationType; use SecTheat...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Models/ProductVariationTypeTest.php
src/tests/Unit/Models/ProductVariationTypeTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\MorphMany; use SecTheater\Marketplace\Models\EloquentProduct; use SecTheater\Marketplace\Models\EloquentProduct...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Models/SaleTest.php
src/tests/Unit/Models/SaleTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use SecTheater\Marketplace\Models\EloquentSale; use SecTheater\Marketplace\Tests\TestCase; class SaleTest extends TestCase { public function se...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Models/RoleTest.php
src/tests/Unit/Models/RoleTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use SecTheater\Marketplace\Models\EloquentRole; use SecTheater\Marketplace\Tests\TestCase; class RoleTest extends TestCase { public function se...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Models/WishlistTest.php
src/tests/Unit/Models/WishlistTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use SecTheater\Marketplace\Models\EloquentWishlist; use SecTheater\Marketplace\Tests\TestCase; class WishlistTest extends TestCase { public fun...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Models/CouponTest.php
src/tests/Unit/Models/CouponTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Models; use Carbon\Carbon; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use SecTheater\Marketplace\Models\EloquentCoupon; use SecTheater\Marketplace\Tests\TestCase; class CouponTest extends TestCase {...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Models/CartTest.php
src/tests/Unit/Models/CartTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use SecTheater\Marketplace\Models\EloquentCart; use SecTheater\Marketplace\Tests\TestCase; class CartTest extends TestCase { public function se...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Models/CategoryTest.php
src/tests/Unit/Models/CategoryTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Models; use Carbon\Carbon; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\MorphMany; use SecTheater\Marketplace\Models\EloquentCategory; use SecTheater\Marketplace\Models\Eloquen...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Models/UserTest.php
src/tests/Unit/Models/UserTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Models; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; use SecTheater\Marketplace\Models\EloquentUser; use SecTheater\Marketplace\Tests\TestCase; class UserTest extends TestCase { public function setUp(...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Models/ProductTest.php
src/tests/Unit/Models/ProductTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\MorphMany; use SecTheater\Marketplace\Contracts\Produ...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/tests/Unit/Models/ProductVariationTest.php
src/tests/Unit/Models/ProductVariationTest.php
<?php namespace SecTheater\Marketplace\Tests\Unit\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; use SecTheater\Marketplace\Models\EloquentProduct; use SecTheater\Marketplace\Models\EloquentProductVariation; use SecTheater\Marketplace\Tests\TestCase; class ProductVariationTest extends TestCase { p...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Contracts/CouponInterface.php
src/Contracts/CouponInterface.php
<?php namespace SecTheater\Marketplace\Contracts; interface CouponInterface { }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Contracts/UserInterface.php
src/Contracts/UserInterface.php
<?php namespace SecTheater\Marketplace\Contracts; interface UserInterface { }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Contracts/CartInterface.php
src/Contracts/CartInterface.php
<?php namespace SecTheater\Marketplace\Contracts; interface CartInterface { }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Contracts/ProductInterface.php
src/Contracts/ProductInterface.php
<?php namespace SecTheater\Marketplace\Contracts; interface ProductInterface { }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Facades/CartRepository.php
src/Facades/CartRepository.php
<?php namespace SecTheater\Marketplace\Facades; use Illuminate\Support\Facades\Facade; class CartRepository extends Facade { protected static function getFacadeAccessor() { return 'CartRepository'; } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Facades/RoleRepository.php
src/Facades/RoleRepository.php
<?php namespace SecTheater\Marketplace\Facades; use Illuminate\Support\Facades\Facade; class RoleRepository extends Facade { protected static function getFacadeAccessor() { return 'RoleRepository'; } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Facades/CategoryRepository.php
src/Facades/CategoryRepository.php
<?php namespace SecTheater\Marketplace\Facades; use Illuminate\Support\Facades\Facade; class CategoryRepository extends Facade { protected static function getFacadeAccessor() { return 'CategoryRepository'; } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Facades/ProductVariationRepository.php
src/Facades/ProductVariationRepository.php
<?php namespace SecTheater\Marketplace\Facades; use Illuminate\Support\Facades\Facade; class ProductVariationRepository extends Facade { protected static function getFacadeAccessor() { return 'ProductVariationRepository'; } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Facades/ProductVariationTypeRepository.php
src/Facades/ProductVariationTypeRepository.php
<?php namespace SecTheater\Marketplace\Facades; use Illuminate\Support\Facades\Facade; class ProductVariationTypeRepository extends Facade { protected static function getFacadeAccessor() { return 'ProductVariationTypeRepository'; } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Facades/UserRepository.php
src/Facades/UserRepository.php
<?php namespace SecTheater\Marketplace\Facades; use Illuminate\Support\Facades\Facade; class UserRepository extends Facade { protected static function getFacadeAccessor() { return 'UserRepository'; } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Facades/ProductRepository.php
src/Facades/ProductRepository.php
<?php namespace SecTheater\Marketplace\Facades; use Illuminate\Support\Facades\Facade; class ProductRepository extends Facade { protected static function getFacadeAccessor() { return 'ProductRepository'; } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Facades/SaleRepository.php
src/Facades/SaleRepository.php
<?php namespace SecTheater\Marketplace\Facades; use Illuminate\Support\Facades\Facade; class SaleRepository extends Facade { protected static function getFacadeAccessor() { return 'SaleRepository'; } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Facades/CouponRepository.php
src/Facades/CouponRepository.php
<?php namespace SecTheater\Marketplace\Facades; use Illuminate\Support\Facades\Facade; class CouponRepository extends Facade { protected static function getFacadeAccessor() { return 'CouponRepository'; } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Facades/WishlistRepository.php
src/Facades/WishlistRepository.php
<?php namespace SecTheater\Marketplace\Facades; use Illuminate\Support\Facades\Facade; class WishlistRepository extends Facade { protected static function getFacadeAccessor() { return 'WishlistRepository'; } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Models/EloquentProduct.php
src/Models/EloquentProduct.php
<?php namespace SecTheater\Marketplace\Models; use Carbon\Carbon; use SecTheater\Marketplace\Contracts\ProductInterface; use SecTheater\Marketplace\Repositories\Traits\HasSale; class EloquentProduct extends Eloquent implements ProductInterface { use HasSale; protected $sale = 0; protected $table = 'products'; ...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Models/EloquentSale.php
src/Models/EloquentSale.php
<?php namespace SecTheater\Marketplace\Models; use Illuminate\Database\Eloquent\Relations\Relation; class EloquentSale extends Eloquent { protected $casts = ['active' => 'boolean']; protected $table = 'sales'; public function saleable() { return $this->morphTo(); } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Models/EloquentRole.php
src/Models/EloquentRole.php
<?php namespace SecTheater\Marketplace\Models; class EloquentRole extends Eloquent { protected $casts = ['permissions' => 'array']; protected $table = 'roles'; public function users() { return $this->belongsToMany($this->userModel,'role_user','role_id','user_id'); } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Models/EloquentUser.php
src/Models/EloquentUser.php
<?php namespace SecTheater\Marketplace\Models; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloquent\Model; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Foundation\Auth\Access\Authorizable; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contr...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Models/EloquentCart.php
src/Models/EloquentCart.php
<?php namespace SecTheater\Marketplace\Models; use SecTheater\Marketplace\Contracts\CartInterface; class EloquentCart extends Eloquent implements CartInterface { protected $table = 'carts'; public function users() { return $this->belongsToMany($this->userModel, 'cart_user','cart_id','user_id'); } public funct...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Models/EloquentWishlist.php
src/Models/EloquentWishlist.php
<?php namespace SecTheater\Marketplace\Models; use SecTheater\Marketplace\Contracts\CartInterface; class EloquentWishlist extends Eloquent implements CartInterface { protected $table = 'wishlists'; public function users() { return $this->belongsToMany($this->userModel, 'user_wishlist','wishlist_id','user_id'...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Models/EloquentProductVariationType.php
src/Models/EloquentProductVariationType.php
<?php namespace SecTheater\Marketplace\Models; use SecTheater\Marketplace\Repositories\Traits\HasSale; class EloquentProductVariationType extends Eloquent { use HasSale; protected $table = 'product_variation_types'; public function product() { return $this->belongsTo($this->productModel); } public functio...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Models/EloquentCoupon.php
src/Models/EloquentCoupon.php
<?php namespace SecTheater\Marketplace\Models; class EloquentCoupon extends Eloquent { protected $guarded = ['id']; protected $dates = ['expires_at']; protected $table = 'coupons'; protected $casts = [ 'active' => 'boolean', 'amount' => 'integer', ]; public function owner() { return $...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Models/Eloquent.php
src/Models/Eloquent.php
<?php namespace SecTheater\Marketplace\Models; use Illuminate\Database\Eloquent\Model; class Eloquent extends Model { protected $guarded = ['id']; public function __get($name) { if (!property_exists(static::class, $name) && str_contains($name, 'Model')) { $model = str_replace('Model', ''...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Models/EloquentCategory.php
src/Models/EloquentCategory.php
<?php namespace SecTheater\Marketplace\Models; use Illuminate\Database\Eloquent\Builder; use SecTheater\Marketplace\Repositories\Traits\HasSale; class EloquentCategory extends Eloquent { use HasSale; protected $table = 'categories'; public function products() { return $this->belongsToMany($this->productModel,'...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Models/EloquentProductVariation.php
src/Models/EloquentProductVariation.php
<?php namespace SecTheater\Marketplace\Models; class EloquentProductVariation extends Eloquent { protected $guarded = ['id']; protected $casts = ['details' => 'array']; protected $table = 'product_variations'; public function type() { return $this->belongsTo($this->productVariationTypeModel, 'product_variat...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Commands/InstallCommand.php
src/Commands/InstallCommand.php
<?php namespace SecTheater\Marketplace\Commands; use Illuminate\Console\Command; use SecTheater\Market\Providers\MarketplaceServiceProvider; class InstallCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'sectheater-ma...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/CartRepository.php
src/Repositories/CartRepository.php
<?php namespace SecTheater\Marketplace\Repositories; use SecTheater\Marketplace\Contracts\CartInterface; use SecTheater\Marketplace\Models\EloquentCart; use SecTheater\Marketplace\Traits\CanBeCarted; class CartRepository extends Repository implements CartInterface { use CanBeCarted; protected $model, $typeRepo, $va...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/RoleRepository.php
src/Repositories/RoleRepository.php
<?php namespace SecTheater\Marketplace\Repositories; use SecTheater\Marketplace\Models\EloquentRole; class RoleRepository extends Repository { protected $model; public function __construct(EloquentRole $model) { $this->model = $model; } public function findbySlug($slug) { return...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/CategoryRepository.php
src/Repositories/CategoryRepository.php
<?php namespace SecTheater\Marketplace\Repositories; use SecTheater\Marketplace\Models\EloquentCategory; class CategoryRepository extends Repository { protected $model; public function __construct(EloquentCategory $model) { $this->model = $model; } public function generate($type) { return $this->model->firs...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/ProductVariationRepository.php
src/Repositories/ProductVariationRepository.php
<?php namespace SecTheater\Marketplace\Repositories; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Collection; use SecTheater\Marketplace\Models\EloquentProductVariation; class ProductVariationRepository extends Repository { protected $model; public function __construct(EloquentProductVariation...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/Repository.php
src/Repositories/Repository.php
<?php namespace SecTheater\Marketplace\Repositories; use SecTheater\Marketplace\Exceptions\UndefinedMethodException; use SecTheater\Marketplace\Repositories\Contracts\RepositoryInterface; abstract class Repository implements RepositoryInterface { protected $scopeQuery, $query; protected $connector = 'and', $betwee...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/ProductVariationTypeRepository.php
src/Repositories/ProductVariationTypeRepository.php
<?php namespace SecTheater\Marketplace\Repositories; use SecTheater\Marketplace\Exceptions\InsufficientProductQuantity; use SecTheater\Marketplace\Exceptions\ProductDoesNotExist; use SecTheater\Marketplace\Models\EloquentProductVariationType as ProductVariationType; use SecTheater\Marketplace\Repositories\Traits\HasS...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/UserRepository.php
src/Repositories/UserRepository.php
<?php namespace SecTheater\Marketplace\Repositories; use SecTheater\Marketplace\Contracts\UserInterface; use SecTheater\Marketplace\Models\EloquentUser; class UserRepository extends Repository { protected $model,$roleRepo; public function __construct(EloquentUser $model) { $this->model = $model; $this->...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/ProductRepository.php
src/Repositories/ProductRepository.php
<?php namespace SecTheater\Marketplace\Repositories; use Illuminate\Support\Collection; use SecTheater\Marketplace\Contracts\ProductInterface; use SecTheater\Marketplace\Exceptions\PropertyIsNotEnabledExpcetion; use SecTheater\Marketplace\Models\EloquentProduct; class ProductRepository extends Repository implements ...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/SaleRepository.php
src/Repositories/SaleRepository.php
<?php namespace SecTheater\Marketplace\Repositories; use SecTheater\Marketplace\Models\EloquentSale; class SaleRepository extends Repository { protected $model; public function __construct(EloquentSale $model) { $this->model = $model; } }
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/CouponRepository.php
src/Repositories/CouponRepository.php
<?php namespace SecTheater\Marketplace\Repositories; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Carbon; use Illuminate\Support\Collection; use SecTheater\Marketplace\Contracts\UserInterface; use SecTheater\Marketplace\Exceptions\CouponCanNotBePurchasedException; use SecTheater\Marketplace\Exceptio...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/WishlistRepository.php
src/Repositories/WishlistRepository.php
<?php namespace SecTheater\Marketplace\Repositories; use SecTheater\Marketplace\Contracts\CartInterface; use SecTheater\Marketplace\Contracts\UserInterface; use SecTheater\Marketplace\Models\EloquentWishlist as Wishlist; use SecTheater\Marketplace\Traits\CanBeCarted; class WishlistRepository extends Repository imple...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/Traits/HasStock.php
src/Repositories/Traits/HasStock.php
<?php namespace SecTheater\Marketplace\Repositories\Traits; trait HasStock { public function inStock($id) { return $this->stock($id) > 5; } public function lowStock($id) { return ($this->stock($id) > 0 && $this->stock($id) < 5); } public function hasStock($id) { return $this->stock($id) > 0; } abstract ...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false
SecTheater/marketplace
https://github.com/SecTheater/marketplace/blob/ac94e42aec5cde9bf764ef610b68637f53323bd9/src/Repositories/Traits/HasSale.php
src/Repositories/Traits/HasSale.php
<?php namespace SecTheater\Marketplace\Repositories\Traits; trait HasSale { public function sales() { return $this->morphMany($this->saleModel, 'saleable','saleable_type')->whereActive(true); } public function hasSales() { return !! $this->getSalesCount(); } public function getSalesCount() ...
php
MIT
ac94e42aec5cde9bf764ef610b68637f53323bd9
2026-01-05T02:13:10.135861Z
false