Upgrade to Laravel 10
This commit is contained in:
parent
c4d7dc31d5
commit
16b120bc73
142 changed files with 1676 additions and 2019 deletions
|
@ -10,11 +10,9 @@ use Illuminate\Support\Facades\DB;
|
|||
class ArticlesTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
* Seed the articles table.
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
$now = Carbon::now()->subMonth()->subDays(5);
|
||||
$articleFirst = Article::create([
|
||||
|
|
|
@ -9,11 +9,9 @@ use Illuminate\Database\Seeder;
|
|||
class BookmarksTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
* Seed the bookmarks table.
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
Bookmark::factory(10)
|
||||
->has(Tag::factory()->count(1))
|
||||
|
|
|
@ -10,11 +10,9 @@ use Illuminate\Support\Facades\DB;
|
|||
class ClientsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
* Seed the clients table.
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
DB::table('clients')->insert([
|
||||
'client_url' => 'https://jbl5.dev/notes/new',
|
||||
|
|
|
@ -9,11 +9,9 @@ use Illuminate\FileSystem\FileSystem;
|
|||
class ContactsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
* Seed the contacts table.
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
Contact::create([
|
||||
'nick' => 'tantek',
|
||||
|
|
|
@ -7,11 +7,9 @@ use Illuminate\Database\Seeder;
|
|||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
* Seed the application's database.
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
$this->call(ArticlesTableSeeder::class);
|
||||
$this->call(ClientsTableSeeder::class);
|
||||
|
|
|
@ -11,11 +11,9 @@ use Illuminate\Support\Facades\DB;
|
|||
class LikesTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
* Seed the likes table.
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
Like::factory(10)->create();
|
||||
|
||||
|
|
|
@ -13,11 +13,9 @@ use SplFileInfo;
|
|||
class NotesTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
* Seed the notes table.
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
$now = Carbon::now()->subDays(rand(2, 5));
|
||||
$noteTwitterReply = Note::create([
|
||||
|
|
|
@ -8,11 +8,9 @@ use Illuminate\Database\Seeder;
|
|||
class PlacesTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
* Seed the places table.
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
$place = new Place();
|
||||
$place->name = 'The Bridgewater Pub';
|
||||
|
|
|
@ -8,11 +8,9 @@ use Illuminate\Support\Facades\DB;
|
|||
class UsersTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
* Seed the users table.
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
DB::table('users')->insert([
|
||||
'name' => 'jonny',
|
||||
|
|
|
@ -8,11 +8,9 @@ use Illuminate\Database\Seeder;
|
|||
class WebMentionsTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
* Seed the webmentions table.
|
||||
*/
|
||||
public function run()
|
||||
public function run(): void
|
||||
{
|
||||
// WebMention Aaron
|
||||
WebMention::create([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue