Skip to content

Commit

Permalink
Feature - Upgrade to Livewire 3 (#302)
Browse files Browse the repository at this point in the history
* wip

* Update to php 8.3
  • Loading branch information
christophrumpel authored Apr 2, 2024
1 parent 28835ef commit 4534050
Show file tree
Hide file tree
Showing 44 changed files with 20,761 additions and 555 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/larastan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
coverage: none

- name: Get composer cache directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
tools: composer:v2
coverage: none
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Livewire;
namespace App\Livewire;

use App\Facades\YouTube;
use App\Jobs\ImportYoutubeChannelStreamsJob;
Expand All @@ -14,14 +14,14 @@ class ImportYouTubeChannel extends Component
public string $youTubeChannelId = '';
public string $languageCode = 'en';

public static function getName(): string
public function getName(): string
{
return 'import-youtube-channel';
return 'import-you-tube-channel';
}

public function render(): View
{
return view('livewire.import-youtube-channel');
return view('livewire.import-you-tube-channel');
}

public function importChannel(): void
Expand All @@ -37,7 +37,7 @@ public function importChannel(): void

dispatch(new ImportYoutubeChannelStreamsJob($this->youTubeChannelId, $this->languageCode));

session()->flash('channel-message', 'Channel "'.$this->youTubeChannelId.'" was added successfully.');
session()->flash('channel-message', 'Channel "' . $this->youTubeChannelId . '" was added successfully.');

$this->reset(['youTubeChannelId', 'languageCode']);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Livewire;
namespace App\Livewire;

use App\Actions\ImportVideoAction;
use App\Services\YouTube\YouTubeException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Livewire;
namespace App\Livewire;

use App\Actions\SortStreamsByDateAction;
use App\Models\Stream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Livewire;
namespace App\Livewire;

use App\Models\Channel;
use App\Models\Stream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Livewire;
namespace App\Livewire;

use App\Actions\Submission\SubmitStreamAction;
use App\Rules\YouTubeRule;
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"homepage": "https://larastreamers.com",
"license": "MIT",
"require": {
"php": "^8.2",
"php": "^8.3",
"abraham/twitteroauth": "^5.0",
"calebporzio/sushi": "^2.4",
"doctrine/dbal": "^3.5",
Expand All @@ -16,7 +16,7 @@
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"league/flysystem-ftp": "^3.0",
"livewire/livewire": "^2.11",
"livewire/livewire": "^3.0",
"owenvoke/blade-fontawesome": "^2.2",
"spatie/data-transfer-object": "^3.7",
"spatie/icalendar-generator": "^2.3",
Expand All @@ -30,7 +30,7 @@
},
"require-dev": {
"brianium/paratest": "^6.4",
"christophrumpel/missing-livewire-assertions": "^1.0",
"christophrumpel/missing-livewire-assertions": "^2.0",
"fakerphp/faker": "^1.17",
"friendsofphp/php-cs-fixer": "^3.6",
"laravel/sail": "^1.18",
Expand Down
Loading

0 comments on commit 4534050

Please sign in to comment.