/** * Run the database seeds. * * @return void */ public function run() { //DA UM TRUNCATE NA TABELA ANTES DE INSERIR 10 NOVOS REGISTROS ALEATORIOS \ProjetoCurso\Models\Client::truncate(); factory(\ProjetoCurso\Models\Client::class, 10)->create(); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Client::find($id)->delete(); }