/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call(ClientTableSeeder::class); //$this->call(UserTableSeeder::class); \CodeProject\Entities\Client::truncate(); factory(\CodeProject\Entities\Client::class, 10)->create(); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Eloquent::unguard(); /*Desativa chave etrangeira*/ DB::statement('SET FOREIGN_KEY_CHECKS=0;'); \CodeProject\Entities\ProjectTask::truncate(); \CodeProject\Entities\ProjectMember::truncate(); \CodeProject\Entities\ProjectNote::truncate(); \CodeProject\Entities\Project::truncate(); \CodeProject\Entities\Client::truncate(); \CodeProject\Entities\User::truncate(); $this->call(UserTableSeeder::class); $this->call(ClientTableSeeder::class); $this->call(ProjectTableSeeder::class); $this->call(ProjectNoteTableSeeder::class); $this->call(ProjectMembersTableSeeder::class); $this->call(ProjectTasksTableSeeder::class); /*ativa chave estrangeira*/ DB::statement('SET FOREIGN_KEY_CHECKS=1;'); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); DB::statement('SET FOREIGN_KEY_CHECKS=0;'); Project::truncate(); User::truncate(); Client::truncate(); ProjectNote::truncate(); ProjectTask::truncate(); ProjectMember::truncate(); OauthClient::truncate(); DB::statement('SET FOREIGN_KEY_CHECKS=1;'); $this->call(ClientTableSeeder::class); $this->call(UserTableSeeder::class); $this->call(ProjectTableSeeder::class); $this->call(ProjectNoteTableSeeder::class); $this->call(ProjectTaskTableSeeder::class); $this->call(ProjectMemberTableSeeder::class); $this->call(OauthClientSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); DB::statement('SET foreign_key_checks = 0'); ProjectNote::truncate(); ProjectTask::truncate(); ProjectMember::truncate(); ProjectFile::truncate(); Project::truncate(); Client::truncate(); User::truncate(); OAuthClient::truncate(); DB::statement('SET foreign_key_checks = 1'); $this->call(UserTableSeeder::class); $this->call(ClientTableSeeder::class); $this->call(ProjectTableSeeder::class); $this->call(ProjectNoteTableSeeder::class); $this->call(ProjectMemberTableSeeder::class); $this->call(ProjectTaskTableSeeder::class); $this->call(OAuthClientTableSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { \CodeProject\Entities\Client::truncate(); factory(\CodeProject\Entities\Client::class, 10)->create(); }
/** * Run the database seeds. * * @return void */ public function run() { Client::truncate(); factory(Client::class, 10)->create(); }
/** * Run the database seeds. * * @return void */ public function run() { \CodeProject\Entities\Client::truncate(); factory(\CodeProject\Entities\User::class)->create(['name' => 'James', 'email' => '*****@*****.**', 'password' => bcrypt(123456), 'remember_token' => str_random(10)]); factory(\CodeProject\Entities\User::class, 10)->create(); }
/** * Run the database seeds. * * @return void */ public function run() { Client::truncate(); factory(Client::class)->create(["name" => "Lucas Gabriel", "responsible" => "Gabriel Teixeira", "email" => "*****@*****.**", "phone" => "9999", "address" => "aosihd asdioashd ", "obs" => "oash doiashdioas dhoias"]); factory(Client::class, 10)->create(); }
/** * Run the database seeds. * * @return void */ public function run() { DB::statement("SET foreign_key_checks = 0"); \CodeProject\Entities\Client::truncate(); factory(\CodeProject\Entities\Client::class, 10)->create(); }