This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers | |
use App\User; | |
use App\Jobs\ProcessNewUser; | |
use App\Http\Controllers\Controller; | |
class RegisterController extends Controller { | |
// ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Jobs; | |
use App\User; | |
use App\UserVisit; | |
use App\Accounting; | |
use App\Notifications\UserGreetingEmail; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Queue\SerializesModels; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers | |
use App\User; | |
use App\Jobs\FarewellUser; | |
use App\Http\Controllers\Controller; | |
class UnregisterController extends Controller { | |
// ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Jobs; | |
use App\User; | |
use App\UserVisit; | |
use App\Accounting; | |
use App\Notifications\UserFarewellEmail; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Queue\SerializesModels; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App | |
use Illuminate\Database\Eloquent\Model; | |
class UserDeleted extends Model { | |
public $table = 'users_deleted'; | |
public $casts = ['payload' => 'array']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Pivots; | |
use Illuminate\Database\Eloquent\Relations\Pivot; | |
class Subscription extends Pivot { | |
public function user() | |
{ | |
return $this->belongsTo('App\User'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class User extends Model | |
{ | |
// ... | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Register the primary database bindings. | |
* | |
* @return void | |
*/ | |
protected function registerConnectionServices() | |
{ | |
// The connection factory is used to create the actual connection instances on | |
// the database. We will inject the factory into the manager so that it may |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Bootstrap the application events. | |
* | |
* @return void | |
*/ | |
public function boot() | |
{ | |
Model::setConnectionResolver($this->app['db']); | |
Model::setEventDispatcher($this->app['events']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests; | |
use PHPUnit\Framework\TestCase; | |
use MyVendor\MyPackage\AbstractClass; | |
class AbstractTest extends TestCase | |
{ | |
protected $newAnonymousClassFromAbstract; |
OlderNewer