Ejemplo n.º 1
0
 public function myTickets()
 {
     $user = User::with('buying', 'selling', 'bought', 'sold')->findOrFail(Auth::user()->id);
     return view('pages.mytickets', compact('user'));
 }
Ejemplo n.º 2
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     User::create(['role_id' => 1, 'school_id' => 1, 'name' => 'Administrator', 'phone' => '(555) 867-5309', 'email' => '*****@*****.**', 'paypal' => '*****@*****.**', 'password' => bcrypt('admin'), 'verified' => 1, 'remember_token' => str_random(10)]);
     User::create(['role_id' => 2, 'school_id' => 104, 'name' => 'Jason Raimondi', 'phone' => '(954) 703-0436', 'email' => '*****@*****.**', 'paypal' => '*****@*****.**', 'password' => bcrypt('jason'), 'verified' => 1, 'remember_token' => str_random(10)]);
     factory(User::class, 1000)->create();
 }
Ejemplo n.º 3
0
 /**
  * Create a new user instance after a valid registration.
  *
  * @param  array  $data
  * @return User
  */
 protected function create(array $data)
 {
     return User::create(['role_id' => 2, 'name' => $data['name'], 'email' => $data['email'], 'school_id' => $data['school_id'], 'phone' => $data['phone'], 'password' => bcrypt($data['password'])]);
 }