Пример #1
0
 /**
  * Check if the application can create a client and persist the data in database.
  *
  * @test
  */
 public function test_create_and_persist_client()
 {
     $client = Client::create(['name' => 'Client Test', 'email' => '*****@*****.**', 'active' => true]);
     $this->assertEquals('Client Test', $client->name);
     $client = Client::all()->first();
     $this->assertEquals('Client Test', $client->name);
 }
 public function index()
 {
     $clients = Client::all();
     return view('gtwclient::index', compact('clients'));
 }