Files
UNIT3D-Community-Edition/database/seeds/ChatroomTableSeeder.php
poppabear8883 e123b60104 (Beta) Chat v2.0
This is a "Beta" commit. Its expected to be appropriate for local or
public testing.
2018-05-09 14:10:11 -04:00

36 lines
751 B
PHP

<?php
/**
* NOTICE OF LICENSE
*
* UNIT3D is open-sourced software licensed under the GNU General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
* @author HDVinnie
*/
use App\Chatroom;
use Illuminate\Database\Seeder;
class ChatroomTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$rooms = [
'General',
'Trivia'
];
foreach ($rooms as $room) {
Chatroom::create([
'name' => $room
]);
}
}
}