Skip to content

Instantly share code, notes, and snippets.

View fhulufhelo's full-sized avatar

Fhulufhelo Mokhomi fhulufhelo

  • South Africa, Johannesburg
View GitHub Profile
/* Delete old cache */
$this->cache->delete('ocm.xshippingpro')
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
Environment Homestead
Clone repo
cd repo
mv .env.example .env
php artisan key:generate
php artisan serve
//ERROR
php artisan db:seed
<?php
namespace Illuminate\Http\Concerns;
// InteractsWithInput
/**
* Get the user for the incoming request.
*
* @param \Illuminate\Http\Request $request
* @return mixed
*/
<?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.
<?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
<?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
{
<?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
{
<?php
namespace App\RegisterUser;
use App\User;
use Illuminate\Support\Facades\Hash;
use Illuminate\Http\Request;
abstract class Registering
{
<?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;