public function createBills()
 {
     Bill::create(['name' => 'Rent', 'match' => 'rent,land,lord', 'amount_min' => 795, 'amount_max' => 805, 'user_id' => $this->user->id, 'date' => '2015-01-01', 'active' => 1, 'automatch' => 1, 'repeat_freq' => 'monthly', 'skip' => 0]);
     Bill::create(['name' => 'Health insurance', 'match' => 'zilveren,kruis,health', 'amount_min' => 120, 'amount_max' => 140, 'user_id' => $this->user->id, 'date' => '2015-01-01', 'active' => 1, 'automatch' => 1, 'repeat_freq' => 'monthly', 'skip' => 0]);
 }
Example #2
0
 /**
  * @param array $data
  *
  * @return Bill
  */
 public function store(array $data)
 {
     $bill = Bill::create(['name' => $data['name'], 'match' => $data['match'], 'amount_min' => $data['amount_min'], 'user_id' => $data['user'], 'amount_max' => $data['amount_max'], 'date' => $data['date'], 'repeat_freq' => $data['repeat_freq'], 'skip' => $data['skip'], 'automatch' => $data['automatch'], 'active' => $data['active']]);
     return $bill;
 }
Example #3
0
 /**
  *
  */
 public function createBills()
 {
     $user = User::whereEmail('*****@*****.**')->first();
     // bill
     Bill::create(['user_id' => $user->id, 'name' => 'Rent', 'match' => 'rent,land,lord', 'amount_min' => 700, 'amount_max' => 900, 'date' => $this->som, 'active' => 1, 'automatch' => 1, 'repeat_freq' => 'monthly', 'skip' => 0]);
     // bill
     Bill::create(['user_id' => $user->id, 'name' => 'Gas licht', 'match' => 'no,match', 'amount_min' => 500, 'amount_max' => 700, 'date' => $this->som, 'active' => 1, 'automatch' => 1, 'repeat_freq' => 'monthly', 'skip' => 0]);
     // bill
     Bill::create(['user_id' => $user->id, 'name' => 'Something something', 'match' => 'mumble,mumble', 'amount_min' => 500, 'amount_max' => 700, 'date' => $this->som, 'active' => 0, 'automatch' => 1, 'repeat_freq' => 'monthly', 'skip' => 0]);
 }