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 |
|---|---|---|---|---|---|---|---|---|
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/DotAtStart.php | src/Result/Reason/DotAtStart.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class DotAtStart implements Reason
{
public function code() : int
{
return 141;
}
public function description() : string
{
return "Starts with a DOT";
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/Reason.php | src/Result/Reason/Reason.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
interface Reason
{
/**
* Code for user land to act upon;
*/
public function code() : int;
/**
* Short description of the result, human readable.
*/
public function description() : string;
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/DomainAcceptsNoMail.php | src/Result/Reason/DomainAcceptsNoMail.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class DomainAcceptsNoMail implements Reason
{
public function code() : int
{
return 154;
}
public function description() : string
{
return 'Domain accepts no mail (Null MX, RFC7505)';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/ExpectingCTEXT.php | src/Result/Reason/ExpectingCTEXT.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class ExpectingCTEXT implements Reason
{
public function code() : int
{
return 139;
}
public function description() : string
{
return 'Expecting CTEXT';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/CommaInDomain.php | src/Result/Reason/CommaInDomain.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class CommaInDomain implements Reason
{
public function code() : int
{
return 200;
}
public function description() : string
{
return "Comma ',' is not allowed in domain part";
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/LocalOrReservedDomain.php | src/Result/Reason/LocalOrReservedDomain.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class LocalOrReservedDomain implements Reason
{
public function code() : int
{
return 153;
}
public function description() : string
{
return 'Local, mDNS or reserved domain (RFC2606, RFC6762)';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/CommentsInIDRight.php | src/Result/Reason/CommentsInIDRight.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class CommentsInIDRight implements Reason
{
public function code() : int
{
return 400;
}
public function description() : string
{
return 'Comments are not allowed in IDRight for message-id';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/ExceptionFound.php | src/Result/Reason/ExceptionFound.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class ExceptionFound implements Reason
{
/**
* @var \Exception
*/
private $exception;
public function __construct(\Exception $exception)
{
$this->exception = $exception;
}
public function code() : int
{
... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/SpoofEmail.php | src/Result/Reason/SpoofEmail.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class SpoofEmail implements Reason
{
public function code() : int
{
return 298;
}
public function description() : string
{
return 'The email contains mixed UTF8 chars that makes it suspicious';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/UnusualElements.php | src/Result/Reason/UnusualElements.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class UnusualElements implements Reason
{
/**
* @var string $element
*/
private $element;
public function __construct(string $element)
{
$this->element = $element;
}
public function code() : int
{
return 201;... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/ExpectingDomainLiteralClose.php | src/Result/Reason/ExpectingDomainLiteralClose.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class ExpectingDomainLiteralClose implements Reason
{
public function code() : int
{
return 137;
}
public function description() : string
{
return "Closing bracket ']' for domain literal not found";
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/UnOpenedComment.php | src/Result/Reason/UnOpenedComment.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class UnOpenedComment implements Reason
{
public function code() : int
{
return 152;
}
public function description(): string
{
return 'Missing opening comment parentheses - https://tools.ietf.org/html/rfc5322#section-3.2.2';
... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/DetailedReason.php | src/Result/Reason/DetailedReason.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
abstract class DetailedReason implements Reason
{
protected $detailedDescription;
public function __construct(string $details)
{
$this->detailedDescription = $details;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/UnableToGetDNSRecord.php | src/Result/Reason/UnableToGetDNSRecord.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
/**
* Used on SERVFAIL, TIMEOUT or other runtime and network errors
*/
class UnableToGetDNSRecord extends NoDNSRecord
{
public function code() : int
{
return 3;
}
public function description() : string
{
return 'Unable to get... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/UnclosedQuotedString.php | src/Result/Reason/UnclosedQuotedString.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class UnclosedQuotedString implements Reason
{
public function code() : int
{
return 145;
}
public function description() : string
{
return "Unclosed quoted string";
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/CRNoLF.php | src/Result/Reason/CRNoLF.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class CRNoLF implements Reason
{
public function code() : int
{
return 150;
}
public function description() : string
{
return 'Missing LF after CR';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/LabelTooLong.php | src/Result/Reason/LabelTooLong.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class LabelTooLong implements Reason
{
public function code() : int
{
return 245;
}
public function description() : string
{
return 'Domain "label" is longer than 63 characters';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/EmailLexerTest.php | tests/EmailValidator/EmailLexerTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator;
use Egulias\EmailValidator\EmailLexer;
use PHPUnit\Framework\TestCase;
class EmailLexerTest extends TestCase
{
public function testLexerExtendsLib()
{
$lexer = new EmailLexer();
$this->assertInstanceOf('Doctrine\Common\Lexer\Abstra... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/LexerTokensTest.php | tests/EmailValidator/LexerTokensTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator;
use PHPUnit\Framework\TestCase;
class LexerTokensTest extends TestCase
{
public function testToken()
{
$this->markTestIncomplete("implement better lexer tokens");
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/EmailValidatorTest.php | tests/EmailValidator/EmailValidatorTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator;
use PHPUnit\Framework\TestCase;
use Egulias\EmailValidator\EmailValidator;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Tests\EmailValidator\Dummy\DummyReason;
use Egulias\EmailValidator\Validation\EmailValidation;
use Egulias\... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/EmailParserTest.php | tests/EmailValidator/EmailParserTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\EmailParser;
use PHPUnit\Framework\TestCase;
class EmailParserTest extends TestCase
{
public static function emailPartsProvider()
{
return [
['test@foo.com', 'tes... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/Validation/MessageIDValidationTest.php | tests/EmailValidator/Validation/MessageIDValidationTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator\Validation;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Validation\MessageIDValidation;
use PHPUnit\Framework\TestCase;
class MessageIDValidationTest extends TestCase
{
/**
* @dataProvider validMessageIDs
*/
public f... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/Validation/NoRFCWarningsValidationTest.php | tests/EmailValidator/Validation/NoRFCWarningsValidationTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator\Validation;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\Reason\NoDomainPart;
use Egulias\EmailValidator\Result\Reason\RFCWarnings;
use Egulias\EmailValidator\Validation\NoRFCWarningsValidation;
use PHPUnit\Framework\TestCase;
cl... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/Validation/RFCValidationTest.php | tests/EmailValidator/Validation/RFCValidationTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator\Validation;
use PHPUnit\Framework\TestCase;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Warning\Comment;
use Egulias\EmailValidator\Warning\CFWSNearAt;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Warning\C... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/Validation/MultipleValidationWithAndTest.php | tests/EmailValidator/Validation/MultipleValidationWithAndTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator\Validation;
use PHPUnit\Framework\TestCase;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\MultipleErrors;
use Egulias\EmailValidator\Tests\EmailValidator\Dummy\AnotherDummyReason;
use... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/Validation/RFCValidationDomainPartTest.php | tests/EmailValidator/Validation/RFCValidationDomainPartTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator\Validation;
use PHPUnit\Framework\TestCase;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Warning\TLD;
use Egulias\EmailValidator\Warning\Comment;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Warning\IPV6BadC... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/Validation/DNSCheckValidationTest.php | tests/EmailValidator/Validation/DNSCheckValidationTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator\Validation;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\Reason\DomainAcceptsNoMail;
use Egulias\EmailValidator\Result\Reason\LocalOrReservedDomain;
use Egulias\EmailValidator\Result... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/Validation/IsEmailFunctionTests.php | tests/EmailValidator/Validation/IsEmailFunctionTests.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator\Validation;
use Egulias\EmailValidator\EmailValidator;
use Egulias\EmailValidator\Validation\DNSCheckValidation;
use Egulias\EmailValidator\Validation\MultipleValidationWithAnd;
use Egulias\EmailValidator\Validation\NoRFCWarningsValidation;
use PHPUnit\Frame... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/Validation/Extra/SpoofCheckValidationTest.php | tests/EmailValidator/Validation/Extra/SpoofCheckValidationTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator\Validation\Extra;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Validation\Extra\SpoofCheckValidation;
use PHPUnit\Framework\TestCase;
class SpoofCheckValidationTest extends TestCase
{
/**
* @dataProvider validUTF8EmailsProvider... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/Reason/MultipleErrorsTest.php | tests/EmailValidator/Reason/MultipleErrorsTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator\Reason;
use Egulias\EmailValidator\Result\MultipleErrors;
use Egulias\EmailValidator\Result\Reason\EmptyReason;
use Egulias\EmailValidator\Tests\EmailValidator\Dummy\AnotherDummyReason;
use Egulias\EmailValidator\Tests\EmailValidator\Dummy\DummyReason;
use P... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/Dummy/DummyReason.php | tests/EmailValidator/Dummy/DummyReason.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator\Dummy;
use Egulias\EmailValidator\Result\Reason\Reason;
class DummyReason implements Reason
{
public function code() : int
{
return 0;
}
public function description() : string
{
return 'Dummy Reason';
}
} | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/Dummy/AnotherDummyReason.php | tests/EmailValidator/Dummy/AnotherDummyReason.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator\Dummy;
use Egulias\EmailValidator\Result\Reason\Reason;
class AnotherDummyReason implements Reason
{
public function code() : int
{
return 1;
}
public function description() : string
{
return 'Dummy Reason';
}
} | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/tests/EmailValidator/Result/ResultTest.php | tests/EmailValidator/Result/ResultTest.php | <?php
namespace Egulias\EmailValidator\Tests\EmailValidator\Result;
use PHPUnit\Framework\TestCase;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\Reason\CharNotAllowed;
class ResultTest extends TestCase
{
public function testResult... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/VoyagerServiceProvider.php | src/VoyagerServiceProvider.php | <?php
namespace TCG\Voyager;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Foundation\AliasLoader;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Pagination\Paginator;
use Illuminate\Routing\Router;
use Illum... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Translator.php | src/Translator.php | <?php
namespace TCG\Voyager;
use ArrayAccess;
use Illuminate\Database\Eloquent\Model;
use JsonSerializable;
use TCG\Voyager\Facades\Voyager as VoyagerFacade;
class Translator implements ArrayAccess, JsonSerializable
{
protected $model;
protected $attributes = [];
protected $locale;
public function _... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Voyager.php | src/Voyager.php | <?php
namespace TCG\Voyager;
use Arrilot\Widgets\Facade as Widget;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Alert.php | src/Alert.php | <?php
namespace TCG\Voyager;
use TCG\Voyager\Alert\Components\ComponentInterface;
class Alert
{
protected $components;
protected $name;
protected $type;
public function __construct($name, $type = 'default')
{
$this->name = $name;
$this->type = $type;
}
public function a... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Helpers/helpers.php | src/Helpers/helpers.php | <?php
if (!function_exists('setting')) {
function setting($key, $default = null)
{
return TCG\Voyager\Facades\Voyager::setting($key, $default);
}
}
if (!function_exists('menu')) {
function menu($menuName, $type = null, array $options = [])
{
return TCG\Voyager\Facades\Voyager::mode... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Helpers/helpersi18n.php | src/Helpers/helpersi18n.php | <?php
if (!function_exists('__')) {
function __($key, array $par = [])
{
return trans($key, $par);
}
}
| php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Helpers/helperTranslations.php | src/Helpers/helperTranslations.php | <?php
if (!function_exists('is_field_translatable')) {
/**
* Check if a Field is translatable.
*
* @param Illuminate\Database\Eloquent\Model $model
* @param Illuminate\Database\Eloquent\Collection $row
*/
function is_field_translatable($model, $row)
{
if (!is_bread_tra... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Helpers/helperSlugify.php | src/Helpers/helperSlugify.php | <?php
if (!function_exists('isBreadSlugAutoGenerator')) {
/**
* Check if a field slug can be auto generated.
*
* @param json $options
*
* @return string HTML output.
*/
function isBreadSlugAutoGenerator($options)
{
if (isset($options->slugify)) {
return ' d... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Helpers/Reflection.php | src/Helpers/Reflection.php | <?php
if (!function_exists('get_reflection_method')) {
function get_reflection_method($object, $method)
{
$reflectionMethod = new \ReflectionMethod($object, $method);
$reflectionMethod->setAccessible(true);
return $reflectionMethod;
}
}
if (!function_exists('call_protected_method'... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/VoyagerUserController.php | src/Http/Controllers/VoyagerUserController.php | <?php
namespace TCG\Voyager\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use TCG\Voyager\Facades\Voyager;
class VoyagerUserController extends VoyagerBaseController
{
public function profile(Request $request)
{
$route = '';
$dataType = Voyager::model('Dat... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/VoyagerAuthController.php | src/Http/Controllers/VoyagerAuthController.php | <?php
namespace TCG\Voyager\Http\Controllers;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use TCG\Voyager\Facades\Voyager;
class VoyagerAuthController extends Controller
{
use AuthenticatesUsers;
public function login()
{
i... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/VoyagerCompassController.php | src/Http/Controllers/VoyagerCompassController.php | <?php
namespace TCG\Voyager\Http\Controllers;
use Artisan;
use Exception;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
class VoyagerCompassController extends Controller
{
protected $request;
public function __construct()
{
$this->request = ap... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/VoyagerMenuController.php | src/Http/Controllers/VoyagerMenuController.php | <?php
namespace TCG\Voyager\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Arr;
use TCG\Voyager\Facades\Voyager;
class VoyagerMenuController extends Controller
{
public function builder($id)
{
$menu = Voyager::model('Menu')->findOrFail($id);
$this->authorize('edit', $m... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/VoyagerController.php | src/Http/Controllers/VoyagerController.php | <?php
namespace TCG\Voyager\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use Intervention\Image\Constraint;
use Intervention\Image\Facades\Image;
use TCG\Voyager\Facades\Voya... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/VoyagerSettingsController.php | src/Http/Controllers/VoyagerSettingsController.php | <?php
namespace TCG\Voyager\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use TCG\Voyager\Facades\Voyager;
class VoyagerSettingsController extends Controller
{
public function index()
{
// Check permission
$this->authorize('... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/Controller.php | src/Http/Controllers/Controller.php | <?php
namespace TCG\Voyager\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use Illuminate\Routing\Controller as BaseControll... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/VoyagerBaseController.php | src/Http/Controllers/VoyagerBaseController.php | <?php
namespace TCG\Voyager\Http\Controllers;
use Exception;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use TCG\Voyager\Database\Schema\SchemaManager;
use TCG\Voyager\Events\BreadDataAdded;
use TCG\Voyager\Events\B... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | true |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/VoyagerRoleController.php | src/Http/Controllers/VoyagerRoleController.php | <?php
namespace TCG\Voyager\Http\Controllers;
use Illuminate\Http\Request;
use TCG\Voyager\Facades\Voyager;
class VoyagerRoleController extends VoyagerBaseController
{
// POST BR(E)AD
public function update(Request $request, $id)
{
$slug = $this->getSlug($request);
$dataType = Voyager::m... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/VoyagerBreadController.php | src/Http/Controllers/VoyagerBreadController.php | <?php
namespace TCG\Voyager\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use ReflectionClass;
use TCG\Voyager\Database\Schema\SchemaManager;
use TCG\Voyager\Database\Schema\Table;
use TCG\Voyager\Database\Types\Type;
use TCG\Voyager\Events\BreadAdded;
u... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/VoyagerDatabaseController.php | src/Http/Controllers/VoyagerDatabaseController.php | <?php
namespace TCG\Voyager\Http\Controllers;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use TCG\Voyager\Database\DatabaseUpdater;
use TCG\Voyager\Database\Schema\Column;
use TCG\Voyager\Database\Schema\Identifier;... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/VoyagerMediaController.php | src/Http/Controllers/VoyagerMediaController.php | <?php
namespace TCG\Voyager\Http\Controllers;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use Intervention\Image\Facades\Image;
use TCG\Voyager\Events\MediaFileAdded;
use TCG\Voyager\Facades\Voyager;
class Voyage... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/Traits/BreadRelationshipParser.php | src/Http/Controllers/Traits/BreadRelationshipParser.php | <?php
namespace TCG\Voyager\Http\Controllers\Traits;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Pagination\LengthAwarePaginator;
use TCG\Voyager\Models\DataType;
trait BreadRelationshipParser
{
protected function removeRelationshipField(DataType $dataType, $bread_type = 'browse')
{
$forge... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/ContentTypes/BaseType.php | src/Http/Controllers/ContentTypes/BaseType.php | <?php
namespace TCG\Voyager\Http\Controllers\ContentTypes;
use Illuminate\Http\Request;
abstract class BaseType
{
/**
* @var Request
*/
protected $request;
/**
* @var
*/
protected $slug;
/**
* @var
*/
protected $row;
/**
* @var
*/
protected $... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/ContentTypes/Checkbox.php | src/Http/Controllers/ContentTypes/Checkbox.php | <?php
namespace TCG\Voyager\Http\Controllers\ContentTypes;
class Checkbox extends BaseType
{
/**
* @return int
*/
public function handle()
{
return (int) ($this->request->input($this->row->field) == 'on');
}
}
| php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/ContentTypes/Text.php | src/Http/Controllers/ContentTypes/Text.php | <?php
namespace TCG\Voyager\Http\Controllers\ContentTypes;
class Text extends BaseType
{
/**
* @return null|string
*/
public function handle()
{
$value = $this->request->input($this->row->field);
if (isset($this->options->null)) {
return $value == $this->options->nul... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/ContentTypes/Image.php | src/Http/Controllers/ContentTypes/Image.php | <?php
namespace TCG\Voyager\Http\Controllers\ContentTypes;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use Intervention\Image\Constraint;
use Intervention\Image\Facades\Image as InterventionImage;
class Image extends BaseType
{
public function handle()
{
if ($this->request->ha... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/ContentTypes/Relationship.php | src/Http/Controllers/ContentTypes/Relationship.php | <?php
namespace TCG\Voyager\Http\Controllers\ContentTypes;
class Relationship extends BaseType
{
/**
* @return array
*/
public function handle()
{
$content = $this->request->input($this->row->field);
if (is_array($content)) {
$content = array_filter($content, function... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/ContentTypes/Password.php | src/Http/Controllers/ContentTypes/Password.php | <?php
namespace TCG\Voyager\Http\Controllers\ContentTypes;
class Password extends BaseType
{
/**
* Handle password fields.
*
* @return string
*/
public function handle()
{
return empty($this->request->input($this->row->field)) ? null :
bcrypt($this->request->input($... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/ContentTypes/MultipleCheckbox.php | src/Http/Controllers/ContentTypes/MultipleCheckbox.php | <?php
namespace TCG\Voyager\Http\Controllers\ContentTypes;
class MultipleCheckbox extends BaseType
{
/**
* @return mixed
*/
public function handle()
{
$content = $this->request->input($this->row->field, []);
if (true === empty($content)) {
return json_encode([]);
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/ContentTypes/Timestamp.php | src/Http/Controllers/ContentTypes/Timestamp.php | <?php
namespace TCG\Voyager\Http\Controllers\ContentTypes;
use Carbon\Carbon;
class Timestamp extends BaseType
{
public function handle()
{
if (!in_array($this->request->method(), ['PUT', 'POST'])) {
return;
}
$content = $this->request->input($this->row->field);
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/ContentTypes/File.php | src/Http/Controllers/ContentTypes/File.php | <?php
namespace TCG\Voyager\Http\Controllers\ContentTypes;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
class File extends BaseType
{
/**
* @return string
*/
public function handle()
{
if (!$this->request->hasFile($this->row->field)) {
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/ContentTypes/Coordinates.php | src/Http/Controllers/ContentTypes/Coordinates.php | <?php
namespace TCG\Voyager\Http\Controllers\ContentTypes;
use Illuminate\Support\Facades\DB;
class Coordinates extends BaseType
{
/**
* @return string|\Illuminate\Database\Query\Expression
*/
public function handle()
{
if (empty($coordinates = $this->request->input($this->row->field)))... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/ContentTypes/SelectMultiple.php | src/Http/Controllers/ContentTypes/SelectMultiple.php | <?php
namespace TCG\Voyager\Http\Controllers\ContentTypes;
class SelectMultiple extends BaseType
{
public function handle()
{
$content = $this->request->input($this->row->field, []);
if (true === empty($content)) {
return json_encode([]);
}
// Check if we need to ... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Controllers/ContentTypes/MultipleImage.php | src/Http/Controllers/ContentTypes/MultipleImage.php | <?php
namespace TCG\Voyager\Http\Controllers\ContentTypes;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use Intervention\Image\Constraint;
use Intervention\Image\Facades\Image as InterventionImage;
class MultipleImage extends BaseType
{
/**
* @return string
*/
public function... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Http/Middleware/VoyagerAdminMiddleware.php | src/Http/Middleware/VoyagerAdminMiddleware.php | <?php
namespace TCG\Voyager\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class VoyagerAdminMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return mixed
*/
public f... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Traits/Seedable.php | src/Traits/Seedable.php | <?php
namespace TCG\Voyager\Traits;
trait Seedable
{
public function seed($class)
{
if (!class_exists($class)) {
require_once $this->seedersPath.$class.'.php';
}
with(new $class())->run();
}
}
| php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Traits/Resizable.php | src/Traits/Resizable.php | <?php
namespace TCG\Voyager\Traits;
use Illuminate\Support\Str;
trait Resizable
{
/**
* Method for returning specific thumbnail for model.
*
* @param string $type
* @param string $attribute
*
* @return string
*/
public function thumbnail($type, $attribute = 'image')
{
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Traits/Spatial.php | src/Traits/Spatial.php | <?php
namespace TCG\Voyager\Traits;
use Illuminate\Support\Facades\DB;
trait Spatial
{
/**
* Get location as WKT from Geometry for given field.
*
* @param string $column
*
* @return string
*/
public function getLocation($column)
{
$model = self::select(DB::raw('ST_As... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Traits/VoyagerUser.php | src/Traits/VoyagerUser.php | <?php
namespace TCG\Voyager\Traits;
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
use TCG\Voyager\Facades\Voyager;
/**
* @property \Illuminate\Database\Eloquent\Collection roles
*/
trait VoyagerUser
{
/**
* Return default User Role.
*/
public function role()
{
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Traits/Translatable.php | src/Traits/Translatable.php | <?php
namespace TCG\Voyager\Traits;
use Exception;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\Relation;
use TCG\Voyager\Facades\Voyager;
use TCG\Voyager\Models\Translation;
use TCG\Voyager\Translator;
trait Translatable
{
/**
* Check if this model can translate.
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Traits/Renderable.php | src/Traits/Renderable.php | <?php
namespace TCG\Voyager\Traits;
use Illuminate\View\View;
trait Renderable
{
public function render($content)
{
if ($content instanceof View) {
return $content->render();
}
return $content;
}
}
| php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Traits/AlertsMessages.php | src/Traits/AlertsMessages.php | <?php
namespace TCG\Voyager\Traits;
trait AlertsMessages
{
protected $alerts = [];
protected function getAlerts($group = false)
{
if (isset($this->alerts['alerts'])) {
$alerts = $this->alerts['alerts'];
if ($group) {
$alerts = collect($alerts)->groupBy('ty... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Listeners/AddBreadPermission.php | src/Listeners/AddBreadPermission.php | <?php
namespace TCG\Voyager\Listeners;
use TCG\Voyager\Events\BreadAdded;
use TCG\Voyager\Facades\Voyager;
class AddBreadPermission
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Create Permission for a given BRE... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Listeners/DeleteBreadMenuItem.php | src/Listeners/DeleteBreadMenuItem.php | <?php
namespace TCG\Voyager\Listeners;
use TCG\Voyager\Events\BreadDeleted;
use TCG\Voyager\Facades\Voyager;
class DeleteBreadMenuItem
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Delete a MenuItem for a given ... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Listeners/ClearCachedSettingValue.php | src/Listeners/ClearCachedSettingValue.php | <?php
namespace TCG\Voyager\Listeners;
use Cache;
use TCG\Voyager\Events\SettingUpdated;
class ClearCachedSettingValue
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* handle.
*
* @param SettingUpdated $e... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Listeners/AddBreadMenuItem.php | src/Listeners/AddBreadMenuItem.php | <?php
namespace TCG\Voyager\Listeners;
use TCG\Voyager\Events\BreadAdded;
use TCG\Voyager\Facades\Voyager;
class AddBreadMenuItem
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Create a MenuItem for a given BREAD... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Actions/AbstractAction.php | src/Actions/AbstractAction.php | <?php
namespace TCG\Voyager\Actions;
abstract class AbstractAction implements ActionInterface
{
protected $dataType;
protected $data;
public function __construct($dataType, $data)
{
$this->dataType = $dataType;
$this->data = $data;
}
public function getDataType()
{
}
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Actions/ViewAction.php | src/Actions/ViewAction.php | <?php
namespace TCG\Voyager\Actions;
class ViewAction extends AbstractAction
{
public function getTitle()
{
return __('voyager::generic.view');
}
public function getIcon()
{
return 'voyager-eye';
}
public function getPolicy()
{
return 'read';
}
public... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Actions/RestoreAction.php | src/Actions/RestoreAction.php | <?php
namespace TCG\Voyager\Actions;
class RestoreAction extends AbstractAction
{
public function getTitle()
{
return __('voyager::generic.restore');
}
public function getIcon()
{
return 'voyager-trash';
}
public function getPolicy()
{
return 'restore';
}
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Actions/EditAction.php | src/Actions/EditAction.php | <?php
namespace TCG\Voyager\Actions;
class EditAction extends AbstractAction
{
public function getTitle()
{
return __('voyager::generic.edit');
}
public function getIcon()
{
return 'voyager-edit';
}
public function getPolicy()
{
return 'edit';
}
publi... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Actions/ActionInterface.php | src/Actions/ActionInterface.php | <?php
namespace TCG\Voyager\Actions;
interface ActionInterface
{
public function getTitle();
public function getIcon();
public function getPolicy();
public function getAttributes();
public function getRoute($key);
public function getDefaultRoute();
public function getDataType();
}
| php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Actions/DeleteAction.php | src/Actions/DeleteAction.php | <?php
namespace TCG\Voyager\Actions;
class DeleteAction extends AbstractAction
{
public function getTitle()
{
return __('voyager::generic.delete');
}
public function getIcon()
{
return 'voyager-trash';
}
public function getPolicy()
{
return 'delete';
}
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Translator/Collection.php | src/Translator/Collection.php | <?php
namespace TCG\Voyager\Translator;
use Illuminate\Support\Collection as IlluminateCollection;
class Collection extends IlluminateCollection
{
//
}
| php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Contracts/User.php | src/Contracts/User.php | <?php
namespace TCG\Voyager\Contracts;
interface User
{
public function role();
public function hasRole($name);
public function setRole($name);
public function hasPermission($name);
public function hasPermissionOrFail($name);
public function hasPermissionOrAbort($name, $statusCode = 403);... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/DatabaseUpdater.php | src/Database/DatabaseUpdater.php | <?php
namespace TCG\Voyager\Database;
use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\DBAL\Schema\TableDiff;
use TCG\Voyager\Database\Schema\SchemaManager;
use TCG\Voyager\Database\Schema\Table;
use TCG\Voyager\Database\Types\Type;
class DatabaseUpdater
{
protected $tableA... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/Types/Type.php | src/Database/Types/Type.php | <?php
namespace TCG\Voyager\Database\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform as DoctrineAbstractPlatform;
use Doctrine\DBAL\Types\Type as DoctrineType;
use TCG\Voyager\Database\Platforms\Platform;
use TCG\Voyager\Database\Schema\SchemaManager;
abstract class Type extends DoctrineType
{
protected stat... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/Types/Mysql/MediumIntType.php | src/Database/Types/Mysql/MediumIntType.php | <?php
namespace TCG\Voyager\Database\Types\Mysql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use TCG\Voyager\Database\Types\Type;
class MediumIntType extends Type
{
public const NAME = 'mediumint';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
$commonIntegerTyp... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/Types/Mysql/TinyTextType.php | src/Database/Types/Mysql/TinyTextType.php | <?php
namespace TCG\Voyager\Database\Types\Mysql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use TCG\Voyager\Database\Types\Type;
class TinyTextType extends Type
{
public const NAME = 'tinytext';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
return 'tinytext';
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/Types/Mysql/MultiPointType.php | src/Database/Types/Mysql/MultiPointType.php | <?php
namespace TCG\Voyager\Database\Types\Mysql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use TCG\Voyager\Database\Types\Type;
class MultiPointType extends Type
{
public const NAME = 'multipoint';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
return 'multipo... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/Types/Mysql/TinyBlobType.php | src/Database/Types/Mysql/TinyBlobType.php | <?php
namespace TCG\Voyager\Database\Types\Mysql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use TCG\Voyager\Database\Types\Type;
class TinyBlobType extends Type
{
public const NAME = 'tinyblob';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
return 'tinyblob';
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/Types/Mysql/MediumBlobType.php | src/Database/Types/Mysql/MediumBlobType.php | <?php
namespace TCG\Voyager\Database\Types\Mysql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use TCG\Voyager\Database\Types\Type;
class MediumBlobType extends Type
{
public const NAME = 'mediumblob';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
return 'mediumb... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/Types/Mysql/LongTextType.php | src/Database/Types/Mysql/LongTextType.php | <?php
namespace TCG\Voyager\Database\Types\Mysql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use TCG\Voyager\Database\Types\Type;
class LongTextType extends Type
{
public const NAME = 'longtext';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
return 'longtext';
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/Types/Mysql/BitType.php | src/Database/Types/Mysql/BitType.php | <?php
namespace TCG\Voyager\Database\Types\Mysql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use TCG\Voyager\Database\Types\Type;
class BitType extends Type
{
public const NAME = 'bit';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
$length = empty($field['lengt... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/Types/Mysql/EnumType.php | src/Database/Types/Mysql/EnumType.php | <?php
namespace TCG\Voyager\Database\Types\Mysql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Illuminate\Support\Facades\DB;
use TCG\Voyager\Database\Types\Type;
class EnumType extends Type
{
public const NAME = 'enum';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/Types/Mysql/BlobType.php | src/Database/Types/Mysql/BlobType.php | <?php
namespace TCG\Voyager\Database\Types\Mysql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use TCG\Voyager\Database\Types\Type;
class BlobType extends Type
{
public const NAME = 'blob';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
return 'blob';
}
}
| php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/Types/Mysql/TinyIntType.php | src/Database/Types/Mysql/TinyIntType.php | <?php
namespace TCG\Voyager\Database\Types\Mysql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use TCG\Voyager\Database\Types\Type;
class TinyIntType extends Type
{
public const NAME = 'tinyint';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
$commonIntegerTypeDec... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
thedevdojo/voyager | https://github.com/thedevdojo/voyager/blob/7e7e0f4f0e115d2d9e0481a86153a1ceff194c00/src/Database/Types/Mysql/MediumTextType.php | src/Database/Types/Mysql/MediumTextType.php | <?php
namespace TCG\Voyager\Database\Types\Mysql;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use TCG\Voyager\Database\Types\Type;
class MediumTextType extends Type
{
public const NAME = 'mediumtext';
public function getSQLDeclaration(array $field, AbstractPlatform $platform)
{
return 'mediumt... | php | MIT | 7e7e0f4f0e115d2d9e0481a86153a1ceff194c00 | 2026-01-04T15:03:42.463743Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.