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
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Users/Events/Subscriptions/InvoiceInstallmentReleased.php
app/Domains/Users/Events/Subscriptions/InvoiceInstallmentReleased.php
<?php namespace Codecasts\Domains\Users\Events\Subscriptions; class InvoiceInstallmentReleased extends InvoiceCreated { public $amount; public function __construct(array $requestData) { parent::__construct($requestData); $this->amount = $requestData['amount']; } }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Users/Events/Subscriptions/SubscriptionActivated.php
app/Domains/Users/Events/Subscriptions/SubscriptionActivated.php
<?php namespace Codecasts\Domains\Users\Events\Subscriptions; class SubscriptionActivated extends SubscriptionSuspended { // same thing }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Users/Events/Subscriptions/SubscriptionExpired.php
app/Domains/Users/Events/Subscriptions/SubscriptionExpired.php
<?php namespace Codecasts\Domains\Users\Events\Subscriptions; class SubscriptionExpired extends SubscriptionSuspended { // same thing }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Users/Events/Subscriptions/SubscriptionChanged.php
app/Domains/Users/Events/Subscriptions/SubscriptionChanged.php
<?php namespace Codecasts\Domains\Users\Events\Subscriptions; use Codecasts\Domains\Users\User; use Illuminate\Queue\SerializesModels; class SubscriptionChanged { use SerializesModels; public $id; public $accountId; public $expiresAt; public $planIdentifier; public $user; public fun...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Users/Events/Subscriptions/InvoiceCreated.php
app/Domains/Users/Events/Subscriptions/InvoiceCreated.php
<?php namespace Codecasts\Domains\Users\Events\Subscriptions; use Codecasts\Domains\Users\User; use Illuminate\Queue\SerializesModels; class InvoiceCreated { use SerializesModels; public $id; public $accountId; public $status; public $subscription_id; public $user; public function _...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Users/Events/Subscriptions/SubscriptionRenewed.php
app/Domains/Users/Events/Subscriptions/SubscriptionRenewed.php
<?php namespace Codecasts\Domains\Users\Events\Subscriptions; use Codecasts\Domains\Users\User; use Illuminate\Queue\SerializesModels; class SubscriptionRenewed { use SerializesModels; public $id; public $accountId; public $user; public function __construct(array $requestData) { $...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Users/Events/Subscriptions/InvoiceDue.php
app/Domains/Users/Events/Subscriptions/InvoiceDue.php
<?php namespace Codecasts\Domains\Users\Events\Subscriptions; class InvoiceDue extends InvoiceCreated { // same thing }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Users/Events/Subscriptions/InvoiceReleased.php
app/Domains/Users/Events/Subscriptions/InvoiceReleased.php
<?php namespace Codecasts\Domains\Users\Events\Subscriptions; class InvoiceReleased extends InvoiceCreated { public $amount; public function __construct(array $requestData) { parent::__construct($requestData); $this->amount = $requestData['amount']; } }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Users/Events/Subscriptions/InvoiceRefund.php
app/Domains/Users/Events/Subscriptions/InvoiceRefund.php
<?php namespace Codecasts\Domains\Users\Events\Subscriptions; class InvoiceRefund extends InvoiceCreated { // same thing }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Users/Events/Subscriptions/InvoiceStatusChanged.php
app/Domains/Users/Events/Subscriptions/InvoiceStatusChanged.php
<?php namespace Codecasts\Domains\Users\Events\Subscriptions; class InvoiceStatusChanged extends InvoiceCreated { // same thing }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Users/Events/Subscriptions/SubscriptionSuspended.php
app/Domains/Users/Events/Subscriptions/SubscriptionSuspended.php
<?php namespace Codecasts\Domains\Users\Events\Subscriptions; use Codecasts\Domains\Users\User; use Illuminate\Queue\SerializesModels; class SubscriptionSuspended { use SerializesModels; public $id; public $accountId; public $user; public function __construct(array $requestData) { ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Users/Transformers/UserTransformer.php
app/Domains/Users/Transformers/UserTransformer.php
<?php namespace Codecasts\Domains\Users\Transformers; use Codecasts\Domains\Users\User; use League\Fractal\TransformerAbstract as Transformer; /** * Class UserTransformer. */ class UserTransformer extends Transformer { /** * Transform (normalize) the User class for api resources. * * @param User...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Tags/Tag.php
app/Domains/Tags/Tag.php
<?php namespace Codecasts\Domains\Tags; use Illuminate\Database\Eloquent\Model; class Tag extends Model { protected $table = 'tags'; }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Tags/Contracts/TagRepository.php
app/Domains/Tags/Contracts/TagRepository.php
<?php namespace Codecasts\Domains\Tags\Contracts; use Artesaos\Warehouse\Contracts\Segregated\CrudRepository; interface TagRepository extends CrudRepository { }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Tags/Database/Migrations/CreateTagsTable.php
app/Domains/Tags/Database/Migrations/CreateTagsTable.php
<?php namespace Codecasts\Domains\Tags\Database\Migrations; use Codecasts\Support\Domain\Migration; use Illuminate\Database\Schema\Blueprint; class CreateTagsTable extends Migration { /** * Run the migrations. */ public function up() { $this->schema->create('tags', function (Blueprint $...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Tags/Repositories/TagRepository.php
app/Domains/Tags/Repositories/TagRepository.php
<?php namespace Codecasts\Domains\Tags\Repositories; use Artesaos\Warehouse\AbstractCrudRepository; use Artesaos\Warehouse\Traits\ImplementsFractal; use Codecasts\Domains\Tags\Contracts\TagRepository as TagRepositoryContract; use Codecasts\Domains\Tags\Tag; use Codecasts\Domains\Tags\Transformers\TagTransformer; cla...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Tags/Providers/DomainServiceProvider.php
app/Domains/Tags/Providers/DomainServiceProvider.php
<?php namespace Codecasts\Domains\Tags\Providers; use Codecasts\Domains\Tags\Contracts\TagRepository as TagRepositoryContract; use Codecasts\Domains\Tags\Database\Migrations\CreateTagsTable; use Codecasts\Domains\Tags\Repositories\TagRepository; use Codecasts\Support\Domain\ServiceProvider; class DomainServiceProvid...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Tags/Transformers/TagTransformer.php
app/Domains/Tags/Transformers/TagTransformer.php
<?php namespace Codecasts\Domains\Tags\Transformers; use Codecasts\Domains\Tags\Tag; use League\Fractal\TransformerAbstract; class TagTransformer extends TransformerAbstract { public function transform(Tag $Tag) { return [ 'id' => $Tag->id, ]; } }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/LessonLog.php
app/Domains/Lessons/LessonLog.php
<?php namespace Codecasts\Domains\Lessons; use Codecasts\Domains\Users\User; use Illuminate\Database\Eloquent\Model; class LessonLog extends Model { protected $table = 'lesson_logs'; protected $fillable = [ 'lesson_id', 'user_id', 'action', ]; public function lesson() { ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Lesson.php
app/Domains/Lessons/Lesson.php
<?php namespace Codecasts\Domains\Lessons; use Codecasts\Domains\Lessons\Presenters\LessonPresenter; use Codecasts\Domains\Tags\Tag; use Codecasts\Domains\Users\User; use Codecasts\Support\Media\Exceptions\UrlNotFound; use Codecasts\Support\Media\S3MediaManager; use Codecasts\Support\ViewPresenter\Presentable; use Il...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Track.php
app/Domains/Lessons/Track.php
<?php namespace Codecasts\Domains\Lessons; use Codecasts\Domains\Lessons\Presenters\TrackPresenter; use Codecasts\Support\ViewPresenter\Presentable; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Track extends Model { use SoftDeletes, Presentable; protected $tabl...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Presenters/LessonPresenter.php
app/Domains/Lessons/Presenters/LessonPresenter.php
<?php namespace Codecasts\Domains\Lessons\Presenters; use Codecasts\Support\Helpers\TimeHelper; use Codecasts\Support\ViewPresenter\Presenter; class LessonPresenter extends Presenter { public function length() { $helper = new TimeHelper($this->entity->length); return $helper->toHoursMinutesA...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Presenters/TrackPresenter.php
app/Domains/Lessons/Presenters/TrackPresenter.php
<?php namespace Codecasts\Domains\Lessons\Presenters; use Codecasts\Support\Helpers\TimeHelper; use Codecasts\Support\ViewPresenter\Presenter; class TrackPresenter extends Presenter { public function length() { $secLabel = trans('lessons::time.sec'); $minLabel = trans('lessons::time.min'); ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Listeners/LogLessonPlayed.php
app/Domains/Lessons/Listeners/LogLessonPlayed.php
<?php namespace Codecasts\Domains\Lessons\Listeners; use Codecasts\Domains\Lessons\Events\LessonPlayed; class LogLessonPlayed { public function handle(LessonPlayed $event) { if (app('auth')->check()) { $user_id = app('auth')->user()->id; $event->lesson->logs()->create([ ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Listeners/IncrementsTimesDownloaded.php
app/Domains/Lessons/Listeners/IncrementsTimesDownloaded.php
<?php namespace Codecasts\Domains\Lessons\Listeners; use Codecasts\Domains\Lessons\Events\LessonDownloaded; class IncrementsTimesDownloaded { public function handle(LessonDownloaded $event) { $lesson = $event->lesson; $lesson->times_downloaded++; $lesson->save(); } }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Listeners/IncrementsTimesPlayed.php
app/Domains/Lessons/Listeners/IncrementsTimesPlayed.php
<?php namespace Codecasts\Domains\Lessons\Listeners; use Codecasts\Domains\Lessons\Events\LessonPlayed; class IncrementsTimesPlayed { public function handle(LessonPlayed $event) { $lesson = $event->lesson; $lesson->times_played++; $lesson->save(); } }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Listeners/LogLessonDownloaded.php
app/Domains/Lessons/Listeners/LogLessonDownloaded.php
<?php namespace Codecasts\Domains\Lessons\Listeners; use Codecasts\Domains\Lessons\Events\LessonDownloaded; class LogLessonDownloaded { public function handle(LessonDownloaded $event) { if (app('auth')->check()) { $user_id = app('auth')->user()->id; $event->lesson->logs()->cr...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Contracts/LessonRepository.php
app/Domains/Lessons/Contracts/LessonRepository.php
<?php namespace Codecasts\Domains\Lessons\Contracts; use Artesaos\Warehouse\Contracts\BaseRepository; use Artesaos\Warehouse\Contracts\Segregated\CrudRepository; /** * Interface LessonRepository. */ interface LessonRepository extends CrudRepository, BaseRepository { /** * All visible lessons. * ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Contracts/TrackRepository.php
app/Domains/Lessons/Contracts/TrackRepository.php
<?php namespace Codecasts\Domains\Lessons\Contracts; use Artesaos\Warehouse\Contracts\BaseRepository; use Artesaos\Warehouse\Contracts\Segregated\CrudRepository; interface TrackRepository extends CrudRepository, BaseRepository { /** * Get all visible tracks. * * @param int $take * @param boo...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Database/Migrations/CreateLessonLogsTable.php
app/Domains/Lessons/Database/Migrations/CreateLessonLogsTable.php
<?php namespace Codecasts\Domains\Lessons\Database\Migrations; use Codecasts\Support\Domain\Migration; use Illuminate\Database\Schema\Blueprint; class CreateLessonLogsTable extends Migration { /** * Run the migrations. */ public function up() { $this->schema->create('lesson_logs', funct...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Database/Migrations/CreateLessonsTable.php
app/Domains/Lessons/Database/Migrations/CreateLessonsTable.php
<?php namespace Codecasts\Domains\Lessons\Database\Migrations; use Codecasts\Support\Domain\Migration; use Illuminate\Database\Schema\Blueprint; class CreateLessonsTable extends Migration { /** * Run the migrations. */ public function up() { $this->schema->create('lessons', function (Bl...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Database/Migrations/CreateLessonsTagsTable.php
app/Domains/Lessons/Database/Migrations/CreateLessonsTagsTable.php
<?php namespace Codecasts\Domains\Lessons\Database\Migrations; use Codecasts\Support\Domain\Migration; use Illuminate\Database\Schema\Blueprint; class CreateLessonsTagsTable extends Migration { /** * Run the migrations. */ public function up() { $this->schema->create('lessons_tags', fun...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Database/Migrations/CreateTracksTable.php
app/Domains/Lessons/Database/Migrations/CreateTracksTable.php
<?php namespace Codecasts\Domains\Lessons\Database\Migrations; use Codecasts\Support\Domain\Migration; use Illuminate\Database\Schema\Blueprint; class CreateTracksTable extends Migration { /** * Run the migrations. */ public function up() { $this->schema->create('tracks', function (Blue...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Database/Factories/LessonFactory.php
app/Domains/Lessons/Database/Factories/LessonFactory.php
<?php namespace Codecasts\Domains\Lessons\Database\Factories; use Codecasts\Domains\Lessons\Lesson; use Codecasts\Support\Domain\ModelFactory; /** * Class PodcastFactory. */ class LessonFactory extends ModelFactory { protected $model = Lesson::class; public function fields() { $title = $this->...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Database/Factories/TrackFactory.php
app/Domains/Lessons/Database/Factories/TrackFactory.php
<?php namespace Codecasts\Domains\Lessons\Database\Factories; use Codecasts\Domains\Lessons\Track; use Codecasts\Support\Domain\ModelFactory; /** * Class TrackFactory. */ class TrackFactory extends ModelFactory { protected $model = Track::class; public function fields() { $title = $this->faker...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Resources/Lang/pt_BR/lesson.php
app/Domains/Lessons/Resources/Lang/pt_BR/lesson.php
<?php return [ 'slug' => 'slug', 'title' => 'título', 'description' => 'descrição', 'video' => 'vídeo', 'length' => 'duração', 'level' => 'nível', 'level_b' => 'iniciante', 'level_i' => 'intermediário', 'level_a' => 'avançado', ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Resources/Lang/pt_BR/time.php
app/Domains/Lessons/Resources/Lang/pt_BR/time.php
<?php return [ 'sec' => 'seg', 'seconds' => 'segundos', 'min' => 'min', 'minutes' => 'minutos', ];
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Resources/Lang/en/lesson.php
app/Domains/Lessons/Resources/Lang/en/lesson.php
<?php return [ 'slug' => 'slug', 'title' => 'title', 'description' => 'description', 'video' => 'video', 'length' => 'length', 'level' => 'level', 'level_b' => 'beginner', 'level_i' => 'intermediate', 'level_a' => 'advanced', 'p...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Resources/Lang/en/time.php
app/Domains/Lessons/Resources/Lang/en/time.php
<?php return [ 'sec' => 'sec', 'seconds' => 'seconds', 'min' => 'min', 'minutes' => 'minutes', ];
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Repositories/LessonRepository.php
app/Domains/Lessons/Repositories/LessonRepository.php
<?php namespace Codecasts\Domains\Lessons\Repositories; use Artesaos\Warehouse\AbstractCrudRepository; use Artesaos\Warehouse\Traits\ImplementsFractal; use Codecasts\Domains\Lessons\Contracts\LessonRepository as LessonRepositoryContract; use Codecasts\Domains\Lessons\Lesson; use Codecasts\Domains\Lessons\Transformers...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Repositories/TrackRepository.php
app/Domains/Lessons/Repositories/TrackRepository.php
<?php namespace Codecasts\Domains\Lessons\Repositories; use Artesaos\Warehouse\AbstractCrudRepository; use Artesaos\Warehouse\Traits\ImplementsFractal; use Codecasts\Domains\Lessons\Contracts\TrackRepository as TrackRepositoryContract; use Codecasts\Domains\Lessons\Track; use Codecasts\Domains\Lessons\Transformers\Tr...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Providers/EventServiceProvider.php
app/Domains/Lessons/Providers/EventServiceProvider.php
<?php namespace Codecasts\Domains\Lessons\Providers; use Codecasts\Domains\Lessons\Events\LessonDownloaded; use Codecasts\Domains\Lessons\Events\LessonPlayed; use Codecasts\Domains\Lessons\Listeners\IncrementsTimesDownloaded; use Codecasts\Domains\Lessons\Listeners\IncrementsTimesPlayed; use Codecasts\Domains\Lessons...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Providers/DomainServiceProvider.php
app/Domains/Lessons/Providers/DomainServiceProvider.php
<?php namespace Codecasts\Domains\Lessons\Providers; use Codecasts\Domains\Lessons\Contracts\LessonRepository as LessonRepositoryContract; use Codecasts\Domains\Lessons\Contracts\TrackRepository as TrackRepositoryContract; use Codecasts\Domains\Lessons\Database\Factories\LessonFactory; use Codecasts\Domains\Lessons\D...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Events/LessonPlayed.php
app/Domains/Lessons/Events/LessonPlayed.php
<?php namespace Codecasts\Domains\Lessons\Events; use Codecasts\Domains\Lessons\Lesson; use Illuminate\Queue\SerializesModels; class LessonPlayed { use SerializesModels; public $lesson; /** * LessonPlayed constructor. * * @param Lesson $lesson */ public function __construct(Less...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Events/LessonDownloaded.php
app/Domains/Lessons/Events/LessonDownloaded.php
<?php namespace Codecasts\Domains\Lessons\Events; use Codecasts\Domains\Lessons\Lesson; use Illuminate\Queue\SerializesModels; class LessonDownloaded { use SerializesModels; public $lesson; /** * LessonPlayed constructor. * * @param Lesson $lesson */ public function __construct(...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Transformers/LessonTransformer.php
app/Domains/Lessons/Transformers/LessonTransformer.php
<?php namespace Codecasts\Domains\Lessons\Transformers; use Codecasts\Domains\Lessons\Lesson; use League\Fractal\TransformerAbstract; class LessonTransformer extends TransformerAbstract { public function transform(Lesson $lesson) { return [ 'id' => $lesson->id, ]; } }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Lessons/Transformers/TrackTransformer.php
app/Domains/Lessons/Transformers/TrackTransformer.php
<?php namespace Codecasts\Domains\Lessons\Transformers; use Codecasts\Domains\Lessons\Track; use League\Fractal\TransformerAbstract; class TrackTransformer extends TransformerAbstract { public function transform(Track $track) { return [ 'id' => $track->id, ]; } }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Podcasts/Podcast.php
app/Domains/Podcasts/Podcast.php
<?php namespace Codecasts\Domains\Podcasts; use Codecasts\Domains\Podcasts\Presenters\PodcastPresenter; use Codecasts\Domains\Users\User; use Codecasts\Support\Media\Exceptions\UrlNotFound; use Codecasts\Support\Media\S3MediaManager; use Codecasts\Support\ViewPresenter\Presentable; use Illuminate\Database\Eloquent\Mo...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Podcasts/Presenters/PodcastPresenter.php
app/Domains/Podcasts/Presenters/PodcastPresenter.php
<?php namespace Codecasts\Domains\Podcasts\Presenters; use Codecasts\Support\Helpers\TimeHelper; use Codecasts\Support\ViewPresenter\Presenter; class PodcastPresenter extends Presenter { public function length() { $helper = new TimeHelper($this->entity->length); return $helper->toHoursMinute...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Podcasts/Listeners/IncrementsTimesDownloaded.php
app/Domains/Podcasts/Listeners/IncrementsTimesDownloaded.php
<?php namespace Codecasts\Domains\Podcasts\Listeners; use Codecasts\Domains\Podcasts\Events\PodcastDownloaded; class IncrementsTimesDownloaded { public function handle(PodcastDownloaded $event) { $podcast = $event->podcast; $podcast->times_downloaded++; $podcast->save(); } }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Podcasts/Listeners/IncrementsTimesPlayed.php
app/Domains/Podcasts/Listeners/IncrementsTimesPlayed.php
<?php namespace Codecasts\Domains\Podcasts\Listeners; use Codecasts\Domains\Podcasts\Events\PodcastPlayed; class IncrementsTimesPlayed { public function handle(PodcastPlayed $event) { $podcast = $event->podcast; $podcast->times_played++; $podcast->save(); } }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Podcasts/Contracts/PodcastRepository.php
app/Domains/Podcasts/Contracts/PodcastRepository.php
<?php namespace Codecasts\Domains\Podcasts\Contracts; use Artesaos\Warehouse\Contracts\BaseRepository; use Artesaos\Warehouse\Contracts\Segregated\CrudRepository; interface PodcastRepository extends CrudRepository, BaseRepository { public function getVisible($take = 9, $paginate = true); public function fin...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Podcasts/Database/Migrations/CreatePodcastsTable.php
app/Domains/Podcasts/Database/Migrations/CreatePodcastsTable.php
<?php namespace Codecasts\Domains\Podcasts\Database\Migrations; use Codecasts\Support\Domain\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePodcastsTable extends Migration { /** * Run the migrations. */ public function up() { $this->schema->create('podcasts', function ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Podcasts/Database/Factories/PodcastFactory.php
app/Domains/Podcasts/Database/Factories/PodcastFactory.php
<?php namespace Codecasts\Domains\Podcasts\Database\Factories; use Codecasts\Domains\Podcasts\Podcast; use Codecasts\Support\Domain\ModelFactory; /** * Class PodcastFactory. */ class PodcastFactory extends ModelFactory { protected $model = Podcast::class; public function fields() { $title = $t...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Podcasts/Repositories/PodcastRepository.php
app/Domains/Podcasts/Repositories/PodcastRepository.php
<?php namespace Codecasts\Domains\Podcasts\Repositories; use Artesaos\Warehouse\AbstractCrudRepository; use Codecasts\Domains\Podcasts\Contracts\PodcastRepository as PodcastRepositoryContract; use Codecasts\Domains\Podcasts\Podcast; class PodcastRepository extends AbstractCrudRepository implements PodcastRepositoryC...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Podcasts/Providers/EventServiceProvider.php
app/Domains/Podcasts/Providers/EventServiceProvider.php
<?php namespace Codecasts\Domains\Podcasts\Providers; use Codecasts\Domains\Podcasts\Events\PodcastDownloaded; use Codecasts\Domains\Podcasts\Events\PodcastPlayed; use Codecasts\Domains\Podcasts\Listeners\IncrementsTimesDownloaded; use Codecasts\Domains\Podcasts\Listeners\IncrementsTimesPlayed; use Illuminate\Foundat...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Podcasts/Providers/DomainServiceProvider.php
app/Domains/Podcasts/Providers/DomainServiceProvider.php
<?php namespace Codecasts\Domains\Podcasts\Providers; use Codecasts\Domains\Podcasts\Contracts\PodcastRepository as PodcastRepositoryContract; use Codecasts\Domains\Podcasts\Database\Factories\PodcastFactory; use Codecasts\Domains\Podcasts\Database\Migrations\CreatePodcastsTable; use Codecasts\Domains\Podcasts\Reposi...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Podcasts/Events/PodcastDownloaded.php
app/Domains/Podcasts/Events/PodcastDownloaded.php
<?php namespace Codecasts\Domains\Podcasts\Events; use Codecasts\Domains\Podcasts\Podcast; use Illuminate\Queue\SerializesModels; class PodcastDownloaded { use SerializesModels; public $podcast; /** * PodcastPlayed constructor. * * @param Podcast $podcast */ public function __co...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Podcasts/Events/PodcastPlayed.php
app/Domains/Podcasts/Events/PodcastPlayed.php
<?php namespace Codecasts\Domains\Podcasts\Events; use Codecasts\Domains\Podcasts\Podcast; use Illuminate\Queue\SerializesModels; class PodcastPlayed { use SerializesModels; public $podcast; /** * PodcastPlayed constructor. * * @param Podcast $podcast */ public function __constr...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Suggestions/Suggestion.php
app/Domains/Suggestions/Suggestion.php
<?php namespace Codecasts\Domains\Suggestions; use Codecasts\Domains\Users\User; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Suggestion extends Model { use SoftDeletes; protected $table = 'suggestions'; protected $fillable = [ 'user_id', '...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Suggestions/Contracts/SuggestionRepository.php
app/Domains/Suggestions/Contracts/SuggestionRepository.php
<?php namespace Codecasts\Domains\Suggestions\Contracts; use Artesaos\Warehouse\Contracts\Segregated\CrudRepository; interface SuggestionRepository extends CrudRepository { public function getVisibleWithVotes($take = 30, $paginate = true); }
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Suggestions/Database/Migrations/CreateSuggestionsTable.php
app/Domains/Suggestions/Database/Migrations/CreateSuggestionsTable.php
<?php namespace Codecasts\Domains\Suggestions\Database\Migrations; use Codecasts\Support\Domain\Migration; use Illuminate\Database\Schema\Blueprint; class CreateSuggestionsTable extends Migration { /** * Run the migrations. */ public function up() { $this->schema->create('suggestions', ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Suggestions/Database/Migrations/CreateSuggestionsVotesTable.php
app/Domains/Suggestions/Database/Migrations/CreateSuggestionsVotesTable.php
<?php namespace Codecasts\Domains\Suggestions\Database\Migrations; use Codecasts\Support\Domain\Migration; use Illuminate\Database\Schema\Blueprint; class CreateSuggestionsVotesTable extends Migration { /** * Run the migrations. */ public function up() { $this->schema->create('suggestio...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Suggestions/Repositories/SuggestionRepository.php
app/Domains/Suggestions/Repositories/SuggestionRepository.php
<?php namespace Codecasts\Domains\Suggestions\Repositories; use Artesaos\Warehouse\AbstractCrudRepository; use Artesaos\Warehouse\Traits\ImplementsFractal; use Codecasts\Domains\Suggestions\Contracts\SuggestionRepository as SuggestionRepositoryContract; use Codecasts\Domains\Suggestions\Suggestion; use Codecasts\Doma...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Suggestions/Providers/DomainServiceProvider.php
app/Domains/Suggestions/Providers/DomainServiceProvider.php
<?php namespace Codecasts\Domains\Suggestions\Providers; use Codecasts\Domains\Suggestions\Contracts\SuggestionRepository as SuggestionRepositoryContract; use Codecasts\Domains\Suggestions\Database\Migrations\CreateSuggestionsTable; use Codecasts\Domains\Suggestions\Database\Migrations\CreateSuggestionsVotesTable; us...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/app/Domains/Suggestions/Transformers/SuggestionTransformer.php
app/Domains/Suggestions/Transformers/SuggestionTransformer.php
<?php namespace Codecasts\Domains\Suggestions\Transformers; use Codecasts\Domains\Suggestions\Suggestion; use League\Fractal\TransformerAbstract; class SuggestionTransformer extends TransformerAbstract { public function transform(Suggestion $suggestion) { return [ 'id' => $suggestion->id,...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/bootstrap/app.php
bootstrap/app.php
<?php /* |-------------------------------------------------------------------------- | Create The Application |-------------------------------------------------------------------------- | | The first thing we will do is create a new Laravel application instance | which serves as the "glue" for all the components of La...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/bootstrap/autoload.php
bootstrap/autoload.php
<?php define('LARAVEL_START', microtime(true)); /* |-------------------------------------------------------------------------- | Register The Composer Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader | for ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/tests/TestCase.php
tests/TestCase.php
<?php abstract class TestCase extends Illuminate\Foundation\Testing\TestCase { /** * The base URL to use while testing the application. * * @var string */ protected $baseUrl = 'http://localhost'; /** * Creates the application. * * @return \Illuminate\Foundation\Applicati...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/tests/acceptance/lessons/LessonTest.php
tests/acceptance/lessons/LessonTest.php
<?php use Codecasts\Support\Testing\DatabaseMigrations; class LessonTest extends TestCase { use DatabaseMigrations; /** * A basic functional test example. * * @return void */ public function test_lessons_route_is_enabled() { $this->runDatabaseMigrations(); $this->...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/tests/acceptance/home/HomeTest.php
tests/acceptance/home/HomeTest.php
<?php use Codecasts\Support\Testing\DatabaseMigrations; class HomeTest extends TestCase { use DatabaseMigrations; /** * A basic functional test example. * * @return void */ public function test_home_redirect_to_lessons() { $this->runDatabaseMigrations(); $this->vi...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/tests/acceptance/profile/ProfileTest.php
tests/acceptance/profile/ProfileTest.php
<?php use Codecasts\Support\Testing\DatabaseMigrations; class ProfileTest extends TestCase { use DatabaseMigrations; /** * A basic functional test example. * * @return void */ public function test_user_can_edit_his_profile() { $this->runDatabaseMigrations(); $user...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/tests/acceptance/podcasts/PodcastTest.php
tests/acceptance/podcasts/PodcastTest.php
<?php use Codecasts\Support\Testing\DatabaseMigrations; class PodcastTest extends TestCase { use DatabaseMigrations; /** * A basic functional test example. * * @return void */ public function test_podcasts_route_is_enabled() { $this->runDatabaseMigrations(); $this...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/tests/unit/Support/Notifications/SlackTest.php
tests/unit/Support/Notifications/SlackTest.php
<?php namespace Codecasts\Support\Notifications; use Maknz\Slack\Client as SlackClient; use Mockery as m; /** * Class SlackTest. */ class SlackTest extends \TestCase { public function test_send_notifications() { $slackClient = m::mock(SlackClient::class) ->shouldReceive('send') ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/tests/unit/Support/Comments/DisqusTest.php
tests/unit/Support/Comments/DisqusTest.php
<?php namespace Codecasts\Support\Comments; use Illuminate\Contracts\View\Factory; use Mockery as m; /** * Test Disqus comments. */ class DisqusTest extends \TestCase { public function test_disqus_view_is_called_correctly() { $viewFactory = m::mock(Factory::class) ->shouldReceive('make'...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/tests/unit/Domains/Users/UserTest.php
tests/unit/Domains/Users/UserTest.php
<?php namespace Codecasts\Domains\Users; class UserTest extends \TestCase { /** @test */ public function it_returns_the_correct_avatar_if_the_user_has_an_avatar() { $user = factory(User::class)->make([ 'avatar' => 'foobar.jpg', ]); $this->assertEquals('foobar.jpg?s=30'...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/tests/unit/Domains/Lessons/TrackTest.php
tests/unit/Domains/Lessons/TrackTest.php
<?php namespace Codecasts\Domains\Lessons; class TrackTest extends \TestCase { /** @test */ public function it_gets_the_first_lesson_slug() { $track = factory(Track::class)->make(); $lessons = factory(Lesson::class, 2)->make(); $track->setRelation('lessons', $lessons); $...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/public/index.php
public/index.php
<?php /** * Laravel - A PHP Framework For Web Artisans. * * @author Taylor Otwell <taylor@laravel.com> */ /* |-------------------------------------------------------------------------- | Register The Auto Loader |-------------------------------------------------------------------------- | | Composer provides a ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/app.php
config/app.php
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/slack.php
config/slack.php
<?php return [ /* |------------------------------------------------------------- | Incoming webhook endpoint |------------------------------------------------------------- | | The endpoint which Slack generates when creating a | new incoming webhook. It will look something like | https...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/social.php
config/social.php
<?php return [ 'parsers' => [ 'facebook' => \Codecasts\Domains\Users\Parsers\FacebookParser::class, 'github' => \Codecasts\Domains\Users\Parsers\GithubParser::class, 'google' => \Codecasts\Domains\Users\Parsers\GoogleParser::class, ], ];
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/session.php
config/session.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Session Driver |-------------------------------------------------------------------------- | | This option controls the default session "driver" that will be used on | requests. By defau...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/queue.php
config/queue.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Queue Driver |-------------------------------------------------------------------------- | | The Laravel queue API supports a variety of back-ends via an unified | API, giving you conven...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/sentry.php
config/sentry.php
<?php return [ // Private DSN 'dsn' => env('SENTRY_DSN'), // Public DSN (for Javascript) 'public_dsn' => env('SENTRY_PUBLIC_DSN'), // capture release as git sha 'release' => file_exists(base_path('.version')) ? file_get_contents(base_path('.version')) : null, ];
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/cache.php
config/cache.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Cache Store |-------------------------------------------------------------------------- | | This option controls the default cache connection that gets used while | using this caching li...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/eloquent-oauth.php
config/eloquent-oauth.php
<?php return [ /* |-------------------------------------------------------------------------- | User Model |-------------------------------------------------------------------------- | | User model that will be auth against. | */ 'model' => \Codecasts\Domains\Users\User::class, ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/view.php
config/view.php
<?php return [ /* |-------------------------------------------------------------------------- | View Storage Paths |-------------------------------------------------------------------------- | | Most templating systems load templates from disk. Here you may specify | an array of paths that...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/database.php
config/database.php
<?php return [ /* |-------------------------------------------------------------------------- | PDO Fetch Style |-------------------------------------------------------------------------- | | By default, database results will be returned as instances of the PHP | stdClass object; however, ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/services.php
config/services.php
<?php return [ /* |-------------------------------------------------------------------------- | Third Party Services |-------------------------------------------------------------------------- | | This file is for storing the credentials for third party services such | as Stripe, Mailgun, ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/elastic.php
config/elastic.php
<?php return [ /* |-------------------------------------------------------------------------- | Elastic Search Host |-------------------------------------------------------------------------- | | ElasticSearch host configuration | */ 'host' => env('ELASTIC_HOST', '127.0.0.1'), ]...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/filesystems.php
config/filesystems.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Filesystem Disk |-------------------------------------------------------------------------- | | Here you may specify the default filesystem disk that should be used | by the framework. A...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/mail.php
config/mail.php
<?php return [ /* |-------------------------------------------------------------------------- | Mail Driver |-------------------------------------------------------------------------- | | Laravel supports both SMTP and PHP's "mail" function as drivers for the | sending of e-mail. You may s...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/compile.php
config/compile.php
<?php return [ /* |-------------------------------------------------------------------------- | Additional Compiled Classes |-------------------------------------------------------------------------- | | Here you may specify additional classes to include in the compiled file | generated by...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/broadcasting.php
config/broadcasting.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Broadcaster |-------------------------------------------------------------------------- | | This option controls the default broadcaster that will be used by the | framework when an even...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/seotools.php
config/seotools.php
<?php return [ 'meta' => [ 'defaults' => [ 'title' => env('SEO_TITLE', 'CODECASTS'), 'description' => env('SEO_DESCRIPTION', 'Comece a aprender hoje!'), 'separator' => ' - ', 'keywords' => [], 'canonical' => false, ], ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/config/auth.php
config/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for y...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/resources/lang/pt_BR/passwords.php
resources/lang/pt_BR/passwords.php
<?php return [ /* |-------------------------------------------------------------------------- | Password Reset Language Lines |-------------------------------------------------------------------------- | | The following language lines are the default lines which match reasons | that are gi...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/resources/lang/pt_BR/pagination.php
resources/lang/pt_BR/pagination.php
<?php return [ /* |-------------------------------------------------------------------------- | Pagination Language Lines |-------------------------------------------------------------------------- | | The following language lines are used by the paginator library to build | the simple pag...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/resources/lang/pt_BR/validation.php
resources/lang/pt_BR/validation.php
<?php return [ /* |-------------------------------------------------------------------------- | Validation Language Lines |-------------------------------------------------------------------------- | | The following language lines contain the default error messages used by | the validator ...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false
codecasts/codecasts
https://github.com/codecasts/codecasts/blob/f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56/resources/lang/pt_BR/auth.php
resources/lang/pt_BR/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Language Lines |-------------------------------------------------------------------------- | | The following language lines are used during authentication for various | messages t...
php
MIT
f1b1d2c1e9a28f4cb968f5ec1b09b715d8dcae56
2026-01-05T02:18:07.762362Z
false