Squashed commit of the following: commit 1701a33d313d0969b061c8a87734395312045d9a Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Mar 16 18:44:29 2019 +0000 Try and get security checker working again commit 2f81f28419304cad1678c6ee054eb3c8782fa082 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Mar 16 18:38:41 2019 +0000 Make sure aaron's profile pic is saved commit 8a78aeec9c648a647fcb5d778b3003df5c3f653e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sat Mar 16 18:16:16 2019 +0000 Lets push out the new style as is commit a8015907d44370600ae3711605f96c4e3a637fca Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Mar 15 21:31:19 2019 +0000 More design work commit 12cb6e1bfc23ca9591e5348ebc6e49614d686722 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Mar 10 16:00:30 2019 +0000 Updating CSS styles for design v2
37 lines
999 B
PHP
37 lines
999 B
PHP
<?php
|
|
|
|
use App\Models\Contact;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\FileSystem\FileSystem;
|
|
|
|
class ContactsTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
Contact::create([
|
|
'nick' => 'tantek',
|
|
'name' => 'Tantek Çelik',
|
|
'homepage' => 'http://tantek.com',
|
|
'twitter' => 't',
|
|
]);
|
|
Contact::create([
|
|
'nick' => 'aaron',
|
|
'name' => 'Aaron Parecki',
|
|
'homepage' => 'https://aaronparecki.com',
|
|
'facebook' => '123456',
|
|
]);
|
|
$fs = new FileSystem();
|
|
if (!$fs->exists(public_path('assets/profile-images/aaronparecki.com'))) {
|
|
$fs->makeDirectory(public_path('assets/profile-images/aaronparecki.com'));
|
|
}
|
|
$fs->copy(
|
|
base_path('tests/aaron.png'),
|
|
public_path('assets/profile-images/aaronparecki.com/image')
|
|
);
|
|
}
|
|
}
|