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
/* Delete old cache */ | |
$this->cache->delete('ocm.xshippingpro') |
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
Installation | |
symfony new morecorp --full | |
cd morecorp | |
symfony server:start | |
Databases and the Doctrine ORM | |
composer require symfony/orm-pack | |
composer require --dev symfony/maker-bundle |
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
Environment Homestead | |
Clone repo | |
cd repo | |
mv .env.example .env | |
php artisan key:generate | |
php artisan serve | |
//ERROR | |
php artisan db:seed |
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 Illuminate\Http\Concerns; | |
// InteractsWithInput | |
/** | |
* Get the user for the incoming request. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @return mixed | |
*/ |
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 | |
// If we've already retrieved the user for the current request we can just | |
// return it back immediately. We do not want to fetch the user data on | |
// every call to this method because that would be tremendously slow. |
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\RegisterUser; | |
use App\Mail\WelcomeNewAdmin; | |
use Illuminate\Support\Facades\Mail; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Http\Request; | |
use Illuminate\Auth\Access\AuthorizationException; | |
class RegisterAdmin extends Registering |
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\RegisterUser; | |
use App\Mail\WelcomeBuyer; | |
use Illuminate\Support\Facades\Mail; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Http\Request; | |
class RegisterBuyer extends Registering | |
{ |
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\RegisterUser; | |
use App\Mail\WelcomeSeller; | |
use Illuminate\Support\Facades\Mail; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Http\Request; | |
class RegisterSeller extends Registering | |
{ |
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\RegisterUser; | |
use App\User; | |
use Illuminate\Support\Facades\Hash; | |
use Illuminate\Http\Request; | |
abstract class Registering | |
{ |
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 Illuminate\Http\Request; | |
use App\User; | |
use Illuminate\Support\Facades\Mail; | |
use App\RegisterUser\Seller; | |
use App\RegisterUser\Admin; | |
use App\RegisterUser\Buyer; |
NewerOlder