Last change
on this file since 0c07a90 was 0924b6c, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
667 bytes
|
Rev | Line | |
---|
[0924b6c] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | use Illuminate\Support\Carbon;
|
---|
| 4 | use Illuminate\Database\Seeder;
|
---|
| 5 |
|
---|
| 6 | class UserProfilesTableSeeder extends Seeder
|
---|
| 7 | {
|
---|
| 8 | /**
|
---|
| 9 | * Run the database seeds.
|
---|
| 10 | *
|
---|
| 11 | * @return void
|
---|
| 12 | */
|
---|
| 13 | public function run()
|
---|
| 14 | {
|
---|
| 15 | DB::table("user_profiles")->insert([
|
---|
| 16 | "user_id" => 1,
|
---|
| 17 | "profile_link" => "john.doe",
|
---|
| 18 | "technoblog_email" => "john.doe@technoblog.com",
|
---|
| 19 | "facebook_link" => "john.doe",
|
---|
| 20 | "instagram_link" => "johndoe",
|
---|
| 21 | "twitter_link" => "johndoe",
|
---|
| 22 | "youtube_link" => "johndoe",
|
---|
| 23 | "skype_link" => "j.doe",
|
---|
| 24 | "created_at" => Carbon::now()
|
---|
| 25 | ]);
|
---|
| 26 | }
|
---|
| 27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.