Skip to content

Commit

Permalink
Laravel 10 upgrade ongoing
Browse files Browse the repository at this point in the history
  • Loading branch information
alainvd committed Apr 23, 2024
1 parent 050b256 commit 0c1263a
Show file tree
Hide file tree
Showing 9 changed files with 14,742 additions and 11,464 deletions.
3 changes: 1 addition & 2 deletions app/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Str;
use Laravel\Nova\Actions\Actionable;
use Spatie\Activitylog\LogOptions;
use Stevebauman\Purify\Casts\PurifyHtmlOnGet;

class Event extends Model
{
use Actionable, SoftDeletes;
use SoftDeletes;

protected $table = 'events';

Expand Down
2 changes: 1 addition & 1 deletion app/Filters/EventFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(Request $request)
protected function countries($countries): Builder
{
if (empty($countries)) {
return;
return $this->builder;
}

$countriesIn = collect($countries)->pluck('iso')->all();
Expand Down
14 changes: 7 additions & 7 deletions app/Filters/ResourceFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected function selectedSection(string $selectedSection): Builder
protected function searchInput($searchInput): Builder
{
if (is_null($searchInput)) {
return;
return $this->builder;
}

$result = $this->builder->where(function ($q) use ($searchInput) { // $term is the search term on the query string
Expand All @@ -56,7 +56,7 @@ protected function searchInput($searchInput): Builder
protected function selectedLevels(string $selectedLevels): Builder
{
if (count($selectedLevels) == 0) {
return;
return $this->builder;
}
$plucked = collect($selectedLevels)->pluck('id');

Expand All @@ -73,7 +73,7 @@ protected function selectedLevels(string $selectedLevels): Builder
protected function selectedTypes(string $selectedTypes): Builder
{
if (count($selectedTypes) == 0) {
return;
return $this->builder;
}
$plucked = collect($selectedTypes)->pluck('id');

Expand All @@ -90,7 +90,7 @@ protected function selectedTypes(string $selectedTypes): Builder
protected function selectedSubjects(string $selectedSubjects): Builder
{
if (count($selectedSubjects) == 0) {
return;
return $this->builder;
}
$plucked = collect($selectedSubjects)->pluck('id');

Expand All @@ -107,7 +107,7 @@ protected function selectedSubjects(string $selectedSubjects): Builder
protected function selectedCategories(string $selectedCategories): Builder
{
if (count($selectedCategories) == 0) {
return;
return $this->builder;
}
$plucked = collect($selectedCategories)->pluck('id');

Expand All @@ -125,7 +125,7 @@ protected function selectedLanguages(string $selectedLanguages): Builder
{

if (count($selectedLanguages) == 0) {
return;
return $this->builder;
}
$plucked = collect($selectedLanguages)->pluck('id');

Expand All @@ -142,7 +142,7 @@ protected function selectedLanguages(string $selectedLanguages): Builder
protected function selectedProgrammingLanguages(string $selectedProgrammingLanguages): Builder
{
if (count($selectedProgrammingLanguages) == 0) {
return;
return $this->builder;
}
$plucked = collect($selectedProgrammingLanguages)->pluck('id');

Expand Down
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,21 @@
"ext-json": "*",
"ext-zip": "*",
"aws/aws-sdk-php": "^3.131",
"ctessier/nova-advanced-image-field": "^1.3",
"doctrine/dbal": "^3.5",
"guzzlehttp/guzzle": "^7.2",
"intervention/image": "^2.7",
"laravel-lang/lang": "^12.18",
"laravel/framework": "^10.48",
"laravel/helpers": "^1.6",
"laravel/legacy-factories": "^1.3",
"laravel/nova": "^4.0",
"laravel/sanctum": "^3.3",
"laravel/socialite": "^5.6",
"laravel/tinker": "^2.8",
"laravel/ui": "^4.5",
"league/flysystem-aws-s3-v3": "^3.0",
"livewire/livewire": "^2.11",
"maatwebsite/excel": "^3.1",
"martinlindhe/laravel-vue-i18n-generator": "dev-l9",
"martinlindhe/laravel-vue-i18n-generator": "dev-l10",
"mediconesystems/livewire-datatables": "^0.10",
"predis/predis": "^1.1",
"rappasoft/laravel-livewire-tables": "^2.11",
Expand Down
Loading

0 comments on commit 0c1263a

Please sign in to comment.