use IlluminateSupportFacadesDB; use IlluminateSupportFacadesHash; ... ... DB::table('users')->insert([ 'name' => 'John Doe', 'email' => 'john@doe.com', 'password' => Hash::make('password') ]);