text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PermissionRole extends Model
{
protected $table = 'permission_role';
protected $fillable = [
'permission_id',
'role_id'
];
public $timestamps = false;
public function settings()
{
return... | /content/code_sandbox/app/Models/PermissionRole.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 129 |
```php
<?php
namespace App\Models;
use App\Http\Controllers\ClientsController;
use App\Observers\ElasticSearchObserver;
use App\Traits\SearchableTrait;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* @property mixed user_id
* @property mixed company_name
* @property mix... | /content/code_sandbox/app/Models/Client.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 666 |
```php
<?php
namespace App\Models;
use App\Repositories\Money\Money;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* @property Integer amount
*/
class Payment extends Model
{
use SoftDeletes;
protected $fillable = [
'external_id',
'description'... | /content/code_sandbox/app/Models/Payment.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 193 |
```php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Industry extends Model
{
}
``` | /content/code_sandbox/app/Models/Industry.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 21 |
```php
<?php
namespace App\Models;
use App\Repositories\Money\Money;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
protected $appends = ['divided_price'];
protected $hidden=['id'];
public function getRouteKeyName()
{
return 'external_id';
}
public functio... | /content/code_sandbox/app/Models/Product.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 117 |
```php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Comment extends Model
{
use SoftDeletes;
protected $fillable = [
'description',
'task_id',
'user_id'
];
protected $hidden = ['remember_token'];
... | /content/code_sandbox/app/Models/Comment.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 191 |
```php
<?php
namespace App\Models;
use DateTimeInterface;
use Illuminate\Database\Eloquent\Model;
class Absence extends Model
{
protected $fillable = [
'external_id',
'reason',
'start_at',
'end_at',
'user_id',
'comment',
];
protected $dates = ['start_at',... | /content/code_sandbox/app/Models/Absence.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 151 |
```php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
class Status extends Model
{
public function tasks()
{
return $this->hasMany(Task::class);
}
public function leads()
{
return $this->hasMany(Lead::class);
}
... | /content/code_sandbox/app/Models/Status.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 175 |
```php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Contact extends Model
{
use SoftDeletes;
protected $fillable = [
'external_id',
'name',
'email',
'primary_number',
'secondary_number',
... | /content/code_sandbox/app/Models/Contact.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 95 |
```php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Department extends Model
{
protected $fillable =
[
'name',
'external_id',
'description',
];
protected $hidden = ['pivot'];
public function users()
{
return $this->belongsToMany(Us... | /content/code_sandbox/app/Models/Department.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 71 |
```php
<?php
namespace App\Models;
use App\Observers\ElasticSearchObserver;
use App\Services\Comment\Commentable;
use App\Traits\DeadlineTrait;
use App\Traits\SearchableTrait;
use Illuminate\Database\Eloquent\Model;
use Carbon;
use Illuminate\Database\Eloquent\Relations\MorphMany;
use Illuminate\Database\Eloquent\Sof... | /content/code_sandbox/app/Models/Task.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 749 |
```php
<?php
namespace App\Traits;
use App\Observers\ElasticSearchObserver;
trait SearchableTrait
{
public static function boot()
{
// This makes it easy to toggle the search feature flag
// on and off. This is going to prove useful later on
// when deploy the new search engine to a l... | /content/code_sandbox/app/Traits/SearchableTrait.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 326 |
```php
<?php
namespace App\Traits;
use Carbon\Carbon;
trait DeadlineTrait
{
public function isOverDeadline():bool
{
if ($this->isClosed()) {
return false;
}
return $this->deadline < Carbon::now();
}
/**
* @param Int $days
* @return bool
*/
publi... | /content/code_sandbox/app/Traits/DeadlineTrait.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 145 |
```php
<?php
namespace App\Repositories\Role;
interface RoleRepositoryContract
{
public function listAllRoles();
public function allPermissions();
public function allRoles();
public function permissionsUpdate($requestData, $id);
public function create($requestData);
public function destroy... | /content/code_sandbox/app/Repositories/Role/RoleRepositoryContract.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 61 |
```php
<?php
namespace App\Repositories\Role;
use App\Models\Role;
use App\Models\Permission;
/**
* Class RoleRepository
* @package App\Repositories\Role
*/
class RoleRepository implements RoleRepositoryContract
{
/**
* @return mixed
*/
public function listAllRoles()
{
return $this->a... | /content/code_sandbox/app/Repositories/Role/RoleRepository.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 490 |
```php
<?php
namespace App\Repositories\FilesystemIntegration;
interface FilesystemIntegration
{
const ROOT_FOLDER = "Daybyday";
public function upload($client_folder, $filename, $file): array;
public function delete($full_path): bool;
public function view($file);
public function download($file... | /content/code_sandbox/app/Repositories/FilesystemIntegration/FilesystemIntegration.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 79 |
```php
<?php
namespace App\Repositories\Currency;
class Currency
{
protected $code;
/**
* Currency symbol.
*
* @var string
*/
protected $symbol;
/**
* Currency precision (number of decimals).
*
* @var int
*/
protected $precision;
/**
* Currency title... | /content/code_sandbox/app/Repositories/Currency/Currency.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 1,247 |
```php
<?php
namespace App\Repositories\Tax;
use App\Models\Setting;
class Tax
{
/**
* @var int
*/
private $vatRate;
/**
* @var int
*/
private $multipleVatRate;
/**
* Create a new Tax Rate
*
* @return void
*/
public function __construct()
{
... | /content/code_sandbox/app/Repositories/Tax/Tax.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 243 |
```php
<?php
namespace App\Repositories\Format;
use App\Enums\Country;
use App\Models\Setting;
class GetDateFormat
{
private $format;
const CACHE_KEY = "country_date_format";
public function __construct()
{
//if (!cache(self::CACHE_KEY)){
$this->format = Country::fromCode(Settin... | /content/code_sandbox/app/Repositories/Format/GetDateFormat.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 432 |
```php
<?php
namespace App\Repositories\Money;
class MoneyConverter
{
private $money;
public function __construct(Money $money)
{
$this->money = $money;
}
/**
* Format amount to currency equivalent string.
* @param bool $useCode
* @return string
*/
public function... | /content/code_sandbox/app/Repositories/Money/MoneyConverter.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 347 |
```php
<?php
namespace App\Repositories\Money;
use App\Models\Setting;
use App\Repositories\Currency\Currency;
class Money
{
/**
* @var int
*/
private $amount;
/**
* @var Currency
*/
private $currency;
public function __construct($amount = 0)
{
$currency = Setting... | /content/code_sandbox/app/Repositories/Money/Money.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 186 |
```php
<?php
namespace App\Repositories\BillingIntegration;
use App\Models\Client;
use App\Models\Invoice;
use App\Models\Payment;
interface BillingIntegrationInterface
{
const INTEGRATION_TYPE = "billing";
public function getClient();
public function convertJson($response);
public function createI... | /content/code_sandbox/app/Repositories/BillingIntegration/BillingIntegrationInterface.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 150 |
```php
<?php
use Monolog\Handler\StreamHandler;
return [
/*
|your_sha256_hash----------
| Default Log Channel
|your_sha256_hash----------
|
| This option defines the default log channel that gets used when writing
| messages to the logs. The name specified in this option should match
|... | /content/code_sandbox/config/logging.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 485 |
```php
<?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
/*
|your_sha256_hash----------
| JWT Authentication Secret
|your_s... | /content/code_sandbox/config/jwt.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 973 |
```php
<?php
return [
/*
* DataTables search options.
*/
'search' => [
/*
* Smart search will enclose search keyword with wildcard string "%keyword%".
* SQL: column LIKE "%keyword%"
*/
'smart' => true,
/*
* Multi-term search will explode sear... | /content/code_sandbox/config/datatables.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 806 |
```php
<?php
return [
/*
|your_sha256_hash----------
| Third Party Services
|your_sha256_hash----------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, Mandrill, and others. This file provides a sane
| default location for this type of i... | /content/code_sandbox/config/services.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 402 |
```php
<?php
/**
* This file is part of Entrust,
* a role & permission management solution for Laravel.
*
* @license MIT
* @package Zizaco\Entrust
*/
return [
/*
|your_sha256_hash----------
| Entrust Role Model
|your_sha256_hash----------
|
| This is the Role model used by Entrust to cr... | /content/code_sandbox/config/entrust.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 520 |
```php
<?php
/*
* This file is part of laravel-auditing.
*
* @author Antrio Vieira <anteriovieira@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
/*
|your_sha256_hash----------
| Authentication Mo... | /content/code_sandbox/config/auditing.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 249 |
```php
<?php
return [
/*
|your_sha256_hash----------
| Default Filesystem Disk
|your_sha256_hash----------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. A "local" driver, as well as a variety of cloud
| based drivers are available for your... | /content/code_sandbox/config/filesystems.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 695 |
```php
<?php
return [
'hosts' => [
[
'host' => env('ELASTICSEARCH_HOST', 'localhost'),
'port' => env('ELASTICSEARCH_PORT', 9200),
'scheme' => env('ELASTICSEARCH_SCHEME', null),
'user' => env('ELASTICSEARCH_USER', null),
'pass' => env('ELASTICSEARC... | /content/code_sandbox/config/elasticsearch.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 175 |
```php
<?php
return [
/*
|your_sha256_hash----------
| Default Cache Store
|your_sha256_hash----------
|
| This option controls the default cache connection that gets used while
| using this caching library. This connection is used when another is
| not explicitly specified when execut... | /content/code_sandbox/config/cache.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 447 |
```php
<?php
return [
/*
|your_sha256_hash----------
| Default Queue Driver
|your_sha256_hash----------
|
| The Laravel queue API supports a variety of back-ends via an unified
| API, giving you convenient access to each back-end using the same
| syntax for each one. Here you may set t... | /content/code_sandbox/config/queue.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 546 |
```php
<?php
return [
/*
|your_sha256_hash----------
| Default Hash Driver
|your_sha256_hash----------
|
| This option controls the default hash driver that will be used to hash
| passwords for your application. By default, the bcrypt algorithm is
| used; however, you remain free to modi... | /content/code_sandbox/config/hashing.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 311 |
```php
<?php
return [
/*
|your_sha256_hash----------
| Default Broadcaster
|your_sha256_hash----------
|
| This option controls the default broadcaster that will be used by the
| framework when an event needs to be broadcast. You may set this to
| any of the connections defined in the ... | /content/code_sandbox/config/broadcasting.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 282 |
```php
<?php
use Illuminate\Support\Str;
return [
/*
|your_sha256_hash----------
| PDO Fetch Style
|your_sha256_hash----------
|
| By default, database results will be returned as instances of the PHP
| stdClass object; however, you may desire to retrieve records in an
| array format ... | /content/code_sandbox/config/database.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 1,022 |
```php
<?php
return [
/*
|your_sha256_hash----------
| Default Session Driver
|your_sha256_hash----------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other ... | /content/code_sandbox/config/session.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 991 |
```php
<?php
/*
|your_sha256_hash----------
| Notifynder Configuration
|your_sha256_hash----------
*/
return [
/**
* If you have a different user model
* please specific it here, this option is not
* considerate if using notifynder as polymorphic
*/
'model' => 'App\Models\User',
/**
... | /content/code_sandbox/config/notifynder.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 372 |
```php
<?php
return [
/*
|your_sha256_hash----------
| Authentication Defaults
|your_sha256_hash----------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect s... | /content/code_sandbox/config/auth.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 714 |
```php
<?php
return [
/*
|your_sha256_hash----------
| Application Environment
|your_sha256_hash----------
|
| This value determines the "environment" your application is currently
| running in. This may determine how you prefer to configure various
| services your application utilizes... | /content/code_sandbox/config/app.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 1,613 |
```php
<?php
return [
/*
|your_sha256_hash----------
| View Storage Paths
|your_sha256_hash----------
|
| Most templating systems load templates from disk. Here you may specify
| an array of paths that should be checked for your views. Of course
| the usual Laravel view path has alread... | /content/code_sandbox/config/view.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 185 |
```php
<?php
return [
/*
|your_sha256_hash----------
| Additional Compiled Classes
|your_sha256_hash----------
|
| Here you may specify additional classes to include in the compiled file
| generated by the `artisan optimize` command. These should be classes
| that are included on basic... | /content/code_sandbox/config/compile.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 173 |
```php
<?php
return [
/*
|your_sha256_hash----------
| Mail Driver
|your_sha256_hash----------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may specify which one you're using throughout
| your application here. By default, Laravel... | /content/code_sandbox/config/mail.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 829 |
```php
<?php
namespace Tests;
use PHPUnit\Runner\AfterLastTestHook;
use PHPUnit\Runner\BeforeFirstTestHook;
use Illuminate\Contracts\Console\Kernel;
class Bootstrap implements BeforeFirstTestHook, AfterLastTestHook
{
/*
|your_sha256_hash----------
| Bootstrap The Test Environment
|your_sha256_hash----... | /content/code_sandbox/tests/Bootstrap.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 228 |
```php
<?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
{
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';
$ap... | /content/code_sandbox/tests/CreatesApplication.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 81 |
```php
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use App\Models\User;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
protected $user;
public function setUp(): void
{
parent::setUp();
$this->user = User::where('name', ... | /content/code_sandbox/tests/TestCase.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 154 |
```php
<?php
/**
* Ok, glad you are here
* first we get a config instance, and set the settings
* $config = HTMLPurifier_Config::createDefault();
* $config->set('Core.Encoding', $this->config->get('purifier.encoding'));
* $config->set('Cache.SerializerPath', $this->config->get('purifier.cachePath'));
* if ( ! $th... | /content/code_sandbox/config/purifier.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 1,160 |
```php
<?php
namespace Tests;
use App\Models\User;
use App\Models\Role;
use App\Models\Department;
use App\Models\Client;
use App\Models\Task;
use App\Models\Lead;
use App\Models\Contact;
use Facebook\WebDriver\Chrome\ChromeOptions;
use Laravel\Dusk\TestCase as BaseTestCase;
use Facebook\WebDriver\Remote\RemoteWebDri... | /content/code_sandbox/tests/DuskTestCase.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 789 |
```php
<?php
namespace Tests\Browser;
use App\Models\User;
use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
class LoginTest extends DuskTestCase
{
/**
* A Dusk test example.
*
* @return void
*/
public function testExample()
{
$user = factory(User::class)->create([
... | /content/code_sandbox/tests/Browser/LoginTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 287 |
```php
<?php
namespace Tests\Browser;
use App\Models\Client;
use App\Models\Lead;
use App\Models\Project;
use App\Models\Status;
use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use App\Models\User;
class ProjectTest extends DuskTestCase
{
public function te... | /content/code_sandbox/tests/Browser/ProjectTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 1,084 |
```php
<?php
namespace Tests\Browser;
use App\Models\Client;
use App\Models\Lead;
use App\Models\Status;
use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use App\Models\User;
class LeadTest extends DuskTestCase
{
/**
* Test user can access lead thorugh ... | /content/code_sandbox/tests/Browser/LeadTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 1,313 |
```php
<?php
namespace Tests\Browser;
use App\Models\Client;
use App\Models\Contact;
use App\Models\Lead;
use App\Models\Task;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\DuskTestCase;
use App\Models\User;
use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Faker\... | /content/code_sandbox/tests/Browser/ClientTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 1,910 |
```php
<?php
namespace Tests\Browser;
use App\Models\Client;
use App\Models\Lead;
use App\Models\Project;
use App\Models\Status;
use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use App\Models\User;
use Carbon\Carbon;
class AppointmentTest extends DuskTestCase
{... | /content/code_sandbox/tests/Browser/AppointmentTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 245 |
```php
<?php
namespace Tests\Browser;
use App\Models\Setting;
use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
use App\Models\User;
use Faker\Factory as Faker;
class UserTest extends DuskTestCase
{
/**
* Test user can access user thorugh index page.
*/
public function testUserCanSeeUsersOnUserInde... | /content/code_sandbox/tests/Browser/UserTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 546 |
```php
<?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Browser;
class HomePage extends Page
{
/**
* Get the URL for the page.
*
* @return string
*/
public function url()
{
return '/';
}
/**
* Assert that the browser is on the page.
*
* @return voi... | /content/code_sandbox/tests/Browser/Pages/HomePage.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 140 |
```php
<?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Browser;
class Login extends UnauthenticatedPage
{
/**
* Get the URL for the page.
*
* @return string
*/
public function url()
{
return '/login';
}
/**
* Assert that the browser is on the page.
*
... | /content/code_sandbox/tests/Browser/Pages/Login.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 212 |
```php
<?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Page as BasePage;
abstract class Page extends BasePage
{
/**
* Get the global element shortcuts for the site.
*
* @return array
*/
public static function siteElements()
{
return [
'@element' => '#selector... | /content/code_sandbox/tests/Browser/Pages/Page.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 76 |
```php
<?php
namespace Tests\Browser;
use App\Models\Client;
use App\Models\Task;
use App\Models\Status;
use Tests\DuskTestCase;
use Laravel\Dusk\Browser;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use App\Models\User;
class TaskTest extends DuskTestCase
{
/**
* Test user can access task thorugh ... | /content/code_sandbox/tests/Browser/TaskTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 1,613 |
```php
<?php
namespace Tests\Unit\Lead;
use Tests\TestCase;
use App\Models\Lead;
use App\Models\Client;
use App\Models\Invoice;
use App\Models\Offer;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class LeadObserverDeleteTest extends TestCase
{
use DatabaseTransactions;
protected $lead;
public... | /content/code_sandbox/tests/Unit/Lead/LeadObserverDeleteTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 701 |
```php
<?php
namespace Tests\Unit\Client;
use App\Services\ClientNumber\ClientNumberService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Models\Client;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Support\Testing\Fakes\EventFake;
use Tests\TestCase;
class... | /content/code_sandbox/tests/Unit/Client/ClientNumberServiceTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 373 |
```php
<?php
namespace Tests\Unit\Client;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Models\Client;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Support\Testing\Fakes\EventFake;
use Tests\TestCase;
class UpdateAssigneeTest extends TestCase
{
use Data... | /content/code_sandbox/tests/Unit/Client/UpdateAssigneeTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 303 |
```php
<?php
namespace Tests\Unit\Invoice;
use App\Models\Invoice;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;
class DueAtTest extends TestCase
{
use DatabaseTransactions;
protected $invoice;
protected $secondInvoice;
public function setUp(): void
{
parent... | /content/code_sandbox/tests/Unit/Invoice/DueAtTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 366 |
```php
<?php
namespace Tests\Unit\Invoice;
use App\Models\Invoice;
use App\Models\InvoiceLine;
use App\Models\Payment;
use App\Services\Invoice\GenerateInvoiceStatus;
use App\Services\Invoice\InvoiceCalculator;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;
class InvoiceCalculatorTest ext... | /content/code_sandbox/tests/Unit/Invoice/InvoiceCalculatorTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 322 |
```php
<?php
namespace Tests\Unit\Invoice;
use App\Models\Invoice;
use App\Models\InvoiceLine;
use App\Models\Payment;
use App\Services\Invoice\GenerateInvoiceStatus;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;
class GenerateInvoiceStatusTest extends TestCase
{
use DatabaseTransact... | /content/code_sandbox/tests/Unit/Invoice/GenerateInvoiceStatusTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 1,648 |
```php
<?php
namespace Tests\Unit\Invoice;
use App\Enums\InvoiceStatus;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;
class InvoiceStatusEnumTest extends TestCase
{
use DatabaseTransactions;
/**
* @var string
*/
private $paidStatus;
public function setUp(): vo... | /content/code_sandbox/tests/Unit/Invoice/InvoiceStatusEnumTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 405 |
```php
<?php
namespace Tests\Unit\Invoice;
use App\Models\Invoice;
use App\Models\InvoiceLine;
use App\Models\Payment;
use App\Services\Invoice\GenerateInvoiceStatus;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;
class CanUpdateInvoiceTest extends TestCase
{
use DatabaseTransactions;... | /content/code_sandbox/tests/Unit/Invoice/CanUpdateInvoiceTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 192 |
```php
<?php
namespace Tests\Unit\Invoice;
use Tests\TestCase;
use App\Models\Lead;
use App\Models\Invoice;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class RemoveReferenceTest extends TestCase
{
use DatabaseTransactions;
private $invoice;
public function setUp(): void
{
parent:... | /content/code_sandbox/tests/Unit/Invoice/RemoveReferenceTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 202 |
```php
<?php
namespace Tests\Unit\Invoice;
use App\Models\Invoice;
use App\Services\InvoiceNumber\InvoiceNumberService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Support\Testing\Fakes\EventFake;
use Tests\TestCase;
c... | /content/code_sandbox/tests/Unit/Invoice/InvoiceNumberServiceTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 354 |
```php
<?php
namespace Tests\Unit\Comment;
use App\Models\Lead;
use App\Models\Project;
use App\Models\Task;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Models\Client;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class GetCommentEndpointTest extends ... | /content/code_sandbox/tests/Unit/Comment/GetCommentEndpointTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 257 |
```php
<?php
namespace Tests\Unit\Task;
use Tests\TestCase;
use App\Models\Task;
use App\Models\Client;
use App\Models\Invoice;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class TaskObserverDeleteTest extends TestCase
{
use DatabaseTransactions;
protected $task;
public function setup(): voi... | /content/code_sandbox/tests/Unit/Task/TaskObserverDeleteTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 786 |
```php
<?php
namespace Tests\Unit\Invoice;
use App\Enums\OfferStatus;
use App\Models\Offer;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Validation\Rule;
use Illuminate\Validation\Rules\In;
use Tests\TestCase;
class SetStatusTest extends TestCase
{
use DatabaseTransactions;
protecte... | /content/code_sandbox/tests/Unit/Offer/SetStatusTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 217 |
```php
<?php
namespace Tests\Unit\Status;
use App\Models\Lead;
use App\Models\Project;
use App\Models\Status;
use App\Models\Task;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Models\Client;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;
class TypeOfSta... | /content/code_sandbox/tests/Unit/Status/TypeOfStatusTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 263 |
```php
<?php
namespace Tests\Unit\Invoice;
use App\Enums\OfferStatus;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Validation\Rule;
use Illuminate\Validation\Rules\In;
use Tests\TestCase;
class OfferStatusEnumTest extends TestCase
{
use DatabaseTransactions;
/**
* @var string
... | /content/code_sandbox/tests/Unit/Offer/OffersStatusEnumTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 411 |
```php
<?php
namespace Tests\Unit\Controllers\Absence;
use App\Models\Absence;
use App\Models\Contact;
use Carbon\Carbon;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Models\Client;
use App\Models\User;
use App\Models\Industry;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use ... | /content/code_sandbox/tests/Unit/Controllers/Absence/AbsenceControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 588 |
```php
<?php
namespace Tests\Unit\Controllers\Lead;
use App\Models\Contact;
use App\Models\Project;
use App\Models\Status;
use App\Models\Lead;
use Carbon\Carbon;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Models\Client;
use App\Models\User;
use App\Models\Industry;
use Ramsey\Uuid... | /content/code_sandbox/tests/Unit/Controllers/Lead/LeadsControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 669 |
```php
<?php
namespace Tests\Unit\Controllers\Lead;
use Tests\TestCase;
use App\Models\Lead;
use App\Models\Offer;
use App\Models\Client;
use App\Models\Invoice;
use App\Http\Middleware\VerifyCsrfToken;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class DeleteLeadControllerTest extends TestCase
{
use D... | /content/code_sandbox/tests/Unit/Controllers/Lead/DeleteLeadControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 530 |
```php
<?php
namespace Tests\Unit\Controllers\Department;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Models\Client;
use App\Models\User;
use App\Models\Department;
use Ramsey\Uuid\Uuid;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseTr... | /content/code_sandbox/tests/Unit/Controllers/Department/DepartmentsControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 392 |
```php
<?php
namespace Tests\Unit\Controllers\Task;
use App\Models\Contact;
use App\Models\Project;
use App\Models\Status;
use App\Models\Task;
use Carbon\Carbon;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Models\Client;
use App\Models\User;
use App\Models\Industry;
use Ramsey\Uuid... | /content/code_sandbox/tests/Unit/Controllers/Task/TasksControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 841 |
```php
<?php
namespace Tests\Unit\Controllers\Client;
use App\Models\Contact;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Models\Client;
use App\Models\User;
use App\Models\Industry;
use Ramsey\Uuid\Uuid;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation... | /content/code_sandbox/tests/Unit/Controllers/Client/ClientsControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 1,084 |
```php
<?php
namespace Tests\Unit\Controllers\Task;
use Tests\TestCase;
use App\Models\Task;
use App\Models\Client;
use App\Models\Invoice;
use App\Http\Middleware\VerifyCsrfToken;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class DeleteTaskControllerTest extends TestCase
{
use DatabaseTransactions;
... | /content/code_sandbox/tests/Unit/Controllers/Task/DeleteTaskControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 172 |
```php
<?php
namespace Tests\Unit\Controllers\Appointment;
use App\Models\Appointment;
use App\Models\User;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class AppointmentsControllerTest extends TestCase
{
use DatabaseTransactions,... | /content/code_sandbox/tests/Unit/Controllers/Appointment/AppointmentsControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 608 |
```php
<?php
namespace Tests\Unit\Controllers\Role;
use App\Models\Role;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Tests\TestCase;
class RoleControllerTest extends TestCase
{
use DatabaseTransactions;
/** @test */
... | /content/code_sandbox/tests/Unit/Controllers/Role/RoleControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 265 |
```php
<?php
namespace Tests\Unit\Controllers\Offer;
use Carbon\Carbon;
use Tests\TestCase;
use App\Models\Lead;
use App\Models\User;
use App\Models\Client;
use App\Models\Status;
use App\Models\Project;
use App\Http\Middleware\VerifyCsrfToken;
use App\Models\Offer;
use Illuminate\Foundation\Testing\WithoutMiddleware;... | /content/code_sandbox/tests/Unit/Controllers/Offer/OffersControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 800 |
```php
<?php
namespace Tests\Unit\Controllers\Project;
use App\Models\Project;
use App\Models\Status;
use Carbon\Carbon;
use Tests\TestCase;
use App\Models\Client;
use App\Models\User;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ProjectsController... | /content/code_sandbox/tests/Unit/Controllers/Project/ProjectsControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 642 |
```php
<?php
namespace Tests\Unit\Controllers\Project;
use Tests\TestCase;
use App\Models\Project;
use App\Http\Middleware\VerifyCsrfToken;
use App\Models\Task;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class DeleteProjectControllerTest extends TestCase
{
use DatabaseTransactions;
private $proj... | /content/code_sandbox/tests/Unit/Controllers/Project/DeleteProjectControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 537 |
```php
<?php
namespace Tests\Unit\Controllers\User;
use App\Models\Absence;
use App\Models\User;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class UsersControllerCalendarTest extends TestCase
{
use DatabaseTransactions, WithoutMi... | /content/code_sandbox/tests/Unit/Controllers/User/UsersControllerCalendarTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 504 |
```php
<?php
namespace Tests\Unit\Controllers\InvoiceLine;
use App\Http\Middleware\VerifyCsrfToken;
use App\Models\Contact;
use App\Models\Invoice;
use App\Models\InvoiceLine;
use App\Models\Project;
use App\Models\Status;
use App\Models\Lead;
use Carbon\Carbon;
use Tests\TestCase;
use Illuminate\Foundation\Testing\Re... | /content/code_sandbox/tests/Unit/Controllers/InvoiceLine/InvoiceLinesControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 455 |
```php
<?php
namespace Tests\Unit\Controllers\User;
use App\Models\Role;
use App\Models\User;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class UsersControllerTest extends TestCase
{
use DatabaseTransactions, WithoutMiddleware;
... | /content/code_sandbox/tests/Unit/Controllers/User/UsersControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 305 |
```php
<?php
namespace Tests\Unit\Controllers\Payment;
use App\Http\Middleware\VerifyCsrfToken;
use App\Models\Invoice;
use App\Models\InvoiceLine;
use App\Models\Payment;
use App\Models\Permission;
use App\Models\PermissionRole;
use App\Models\Project;
use App\Models\RoleUser;
use App\Models\User;
use Carbon\Carbon;
... | /content/code_sandbox/tests/Unit/Controllers/Payment/PaymentsControllerTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 562 |
```php
<?php
namespace Tests\Unit\Format;
use App\Models\Lead;
use App\Models\Project;
use App\Models\Setting;
use App\Models\Task;
use App\Models\User;
use App\Repositories\Format\GetDateFormat;
use Carbon\Carbon;
use Tests\TestCase;
class GetDateFormatTest extends TestCase
{
/** @var $formatter GetDateFormat */... | /content/code_sandbox/tests/Unit/Format/GetDateFormatTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 459 |
```php
<?php
namespace Tests\Unit\Controllers\Payment;
use App\Http\Middleware\VerifyCsrfToken;
use App\Models\Invoice;
use App\Models\InvoiceLine;
use App\Models\Payment;
use App\Models\Project;
use Carbon\Carbon;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testi... | /content/code_sandbox/tests/Unit/Controllers/Payment/PaymentsControllerAddPaymentTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 1,553 |
```php
<?php
namespace Tests\Unit\DemoEnvironment;
use Tests\TestCase;
use App\Models\Lead;
use App\Models\Role;
use App\Models\Task;
use App\Models\User;
use App\Models\Client;
use App\Models\Department;
use App\Http\Middleware\RedirectIfDemo;
use App\Http\Middleware\VerifyCsrfToken;
use Illuminate\Foundation\Testing... | /content/code_sandbox/tests/Unit/DemoEnvironment/CanNotAccessTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 1,000 |
```php
<?php
namespace Tests\Unit\Project;
use Tests\TestCase;
use App\Models\Project;
use App\Models\Client;
use App\Models\Invoice;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ProjectObserverDeleteTest extends TestCase
{
use DatabaseTransactions;
protected $project;
public function ... | /content/code_sandbox/tests/Unit/Project/ProjectObserverDeleteTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 792 |
```php
<?php
namespace Tests\Unit\User;
use App\Models\Department;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Models\Client;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Tests\TestCase;
class GetAttributesTest extends TestCase
{
use DatabaseTransactions;
pr... | /content/code_sandbox/tests/Unit/User/GetAttributesTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 370 |
```php
<?php
namespace Tests\Unit\Deadline;
use App\Models\Lead;
use App\Models\Project;
use App\Models\Task;
use App\Models\User;
use Carbon\Carbon;
use Tests\TestCase;
class DeadlineTest extends TestCase
{
/** @var $task Task */
private $task;
/** @var $lead Lead */
private $lead;
/** @var $pro... | /content/code_sandbox/tests/Unit/Deadline/DeadlineTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 658 |
```php
<?php
namespace Tests\Unit\Payment;
use App\Enums\PaymentSource;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Validation\Rule;
use Illuminate\Validation\Rules\In;
use Tests\TestCase;
class PaymentSourceEnumTest extends TestCase
{
use DatabaseTransactions;
/**
* @var stri... | /content/code_sandbox/tests/Unit/Payment/PaymentSourceEnumTest.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 468 |
```php
<?php
use Illuminate\Http\Request;
/*
|your_sha256_hash----------
| API Routes
|your_sha256_hash----------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your... | /content/code_sandbox/routes/api.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 122 |
```php
<?php
use Illuminate\Foundation\Inspiring;
/*
|your_sha256_hash----------
| Console Routes
|your_sha256_hash----------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's ... | /content/code_sandbox/routes/console.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 95 |
```php
<?php
/*
|your_sha256_hash----------
| Web Routes
|your_sha256_hash----------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/
Route::auth();
Route::g... | /content/code_sandbox/routes/web.php | php | 2016-01-14T22:43:51 | 2024-08-14T11:30:58 | DaybydayCRM | Bottelet/DaybydayCRM | 2,235 | 2,654 |
```swift
// swift-tools-version:4.2
import PackageDescription
#if os(macOS) // This fires for both macOS and iOS targets, because it's based on build platform
let platformDependencies: [Package.Dependency] = []
let platformExcludes = ["Linux", "Operations/Shaders"]
let platformTargets: [Target] = [
.target(
... | /content/code_sandbox/Package.swift | swift | 2016-04-16T17:16:16 | 2024-08-09T08:27:34 | GPUImage2 | BradLarson/GPUImage2 | 4,858 | 525 |
```swift
import XCTest
//@testable import GPUImage
class FakeOperation: ImageProcessingOperation {
let targets = TargetContainer()
let sources = SourceContainer()
var maximumInputs:UInt { get { return 1 } } // Computed property, so it can be overridden
let name:String
init(name:String) {
... | /content/code_sandbox/framework/Tests/Pipeline_Tests.swift | swift | 2016-04-16T17:16:16 | 2024-08-09T08:27:34 | GPUImage2 | BradLarson/GPUImage2 | 4,858 | 818 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.