Upgrade to Laravel 10

This commit is contained in:
Jonny Barnes 2023-02-18 09:34:57 +00:00
parent c4d7dc31d5
commit 16b120bc73
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
142 changed files with 1676 additions and 2019 deletions

View file

@ -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([

View file

@ -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))

View file

@ -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',

View file

@ -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',

View file

@ -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);

View file

@ -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();

View file

@ -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([

View file

@ -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';

View file

@ -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',

View file

@ -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([