Apply Laravel coding style

Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions.

You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root.

For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
Shift
2023-02-19 16:18:46 +00:00
committed by HolgerHatGarKeineNode
parent a15ca4a2bc
commit 5776b01d15
333 changed files with 4915 additions and 4967 deletions

View File

@@ -18,7 +18,6 @@ class CreateNewUser implements CreatesNewUsers
* Create a newly registered user. * Create a newly registered user.
* *
* @param array $input * @param array $input
*
* @return \App\Models\User * @return \App\Models\User
*/ */
public function create(array $input) public function create(array $input)
@@ -48,7 +47,6 @@ class CreateNewUser implements CreatesNewUsers
* Create a personal team for the user. * Create a personal team for the user.
* *
* @param \App\Models\User $user * @param \App\Models\User $user
*
* @return void * @return void
*/ */
protected function createTeam(User $user) protected function createTeam(User $user)

View File

@@ -8,6 +8,7 @@ trait PasswordValidationRules
{ {
/** /**
* Get the validation rules used to validate passwords. * Get the validation rules used to validate passwords.
*
* @return array * @return array
*/ */
protected function passwordRules() protected function passwordRules()

View File

@@ -14,7 +14,6 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
* *
* @param mixed $user * @param mixed $user
* @param array $input * @param array $input
*
* @return void * @return void
*/ */
public function update($user, array $input) public function update($user, array $input)
@@ -27,7 +26,7 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
'timezone' => ['required', 'string'], 'timezone' => ['required', 'string'],
'email' => [ 'email' => [
'nullable', 'email', 'max:255', Rule::unique('users') 'nullable', 'email', 'max:255', Rule::unique('users')
->ignore($user->id) ->ignore($user->id),
], ],
'photo' => ['nullable', 'mimes:jpg,jpeg,png,gif', 'max:10240'], 'photo' => ['nullable', 'mimes:jpg,jpeg,png,gif', 'max:10240'],
]) ])
@@ -58,7 +57,6 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
* *
* @param mixed $user * @param mixed $user
* @param array $input * @param array $input
*
* @return void * @return void
*/ */
protected function updateVerifiedUser($user, array $input) protected function updateVerifiedUser($user, array $input)

View File

@@ -9,18 +9,21 @@ class CleanupLoginKeys extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'loginkeys:cleanup'; protected $signature = 'loginkeys:cleanup';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()

View File

@@ -8,18 +8,21 @@ class CreatePermissions extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'permissions:create'; protected $signature = 'permissions:create';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()

View File

@@ -9,18 +9,21 @@ class CreateTags extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'tags:create'; protected $signature = 'tags:create';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()

View File

@@ -9,18 +9,21 @@ class FillUserEmails extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'users:emails'; protected $signature = 'users:emails';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()

View File

@@ -11,18 +11,21 @@ class ImportGithubMeetups extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'import:meetups'; protected $signature = 'import:meetups';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()
@@ -36,7 +39,7 @@ class ImportGithubMeetups extends Command
'country_id' => Country::firstOrCreate([ 'country_id' => Country::firstOrCreate([
'code' => str($meetup['country']) 'code' => str($meetup['country'])
->lower() ->lower()
->toString() ->toString(),
], ['name' => $meetup['country']])->id, ], ['name' => $meetup['country']])->id,
'longitude' => $meetup['longitude'], 'longitude' => $meetup['longitude'],
'latitude' => $meetup['latitude'], 'latitude' => $meetup['latitude'],
@@ -48,7 +51,7 @@ class ImportGithubMeetups extends Command
'city_id' => $city->id, 'city_id' => $city->id,
'webpage' => $meetup['url'], 'webpage' => $meetup['url'],
'created_by' => 1, 'created_by' => 1,
'community' => 'einundzwanzig' 'community' => 'einundzwanzig',
]); ]);
} }

View File

@@ -9,18 +9,21 @@ class MigrateMeetupSlugs extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'meetups:slugs'; protected $signature = 'meetups:slugs';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()

View File

@@ -10,18 +10,21 @@ class RenameFileToMd5 extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'files:md5'; protected $signature = 'files:md5';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()

View File

@@ -10,18 +10,21 @@ class SetReputation extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'reputation:set'; protected $signature = 'reputation:set';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()

View File

@@ -10,18 +10,21 @@ class SyncGithubMeetups extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'meetups:github-sync'; protected $signature = 'meetups:github-sync';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()

View File

@@ -11,18 +11,21 @@ class ReadAndSyncPodcastFeeds extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'feed:sync'; protected $signature = 'feed:sync';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()

View File

@@ -9,18 +9,21 @@ class CreateGeoJsonPolygon extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'map:polygon'; protected $signature = 'map:polygon';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()

View File

@@ -10,18 +10,21 @@ class SyncOpenBooks extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'books:sync'; protected $signature = 'books:sync';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()
@@ -30,7 +33,6 @@ class SyncOpenBooks extends Command
$ids = collect($response->json()['cases'])->pluck('id'); $ids = collect($response->json()['cases'])->pluck('id');
try { try {
foreach ($response->json()['cases'] as $case) { foreach ($response->json()['cases'] as $case) {
BookCase::updateOrCreate( BookCase::updateOrCreate(
[ [

View File

@@ -11,18 +11,21 @@ class ImportLibraryItems extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
*
* @var string * @var string
*/ */
protected $signature = 'import:l'; protected $signature = 'import:l';
/** /**
* The console command description. * The console command description.
*
* @var string * @var string
*/ */
protected $description = 'Command description'; protected $description = 'Command description';
/** /**
* Execute the console command. * Execute the console command.
*
* @return int * @return int
*/ */
public function handle() public function handle()
@@ -98,7 +101,6 @@ class ImportLibraryItems extends Command
$library = Library::firstOrCreate(['name' => 'Bitcoin Lesestoff by Gigi'], ['created_by' => 1]); $library = Library::firstOrCreate(['name' => 'Bitcoin Lesestoff by Gigi'], ['created_by' => 1]);
foreach ($items as $link => $item) { foreach ($items as $link => $item) {
$name = str($item)->before(' || '); $name = str($item)->before(' || ');
$author = str($item)->after(' || '); $author = str($item)->after(' || ');

View File

@@ -13,19 +13,17 @@ class Kernel extends ConsoleKernel
{ {
protected $commands = [ protected $commands = [
SyncOpenBooks::class, SyncOpenBooks::class,
ReadAndSyncPodcastFeeds::class ReadAndSyncPodcastFeeds::class,
]; ];
/** /**
* Define the application's command schedule. * Define the application's command schedule.
* *
* @param \Illuminate\Console\Scheduling\Schedule $schedule * @param \Illuminate\Console\Scheduling\Schedule $schedule
*
* @return void * @return void
*/ */
protected function schedule(Schedule $schedule) protected function schedule(Schedule $schedule)
{ {
$schedule->call(new PruneStaleAttachments) $schedule->call(new PruneStaleAttachments)
->daily(); ->daily();
$schedule->command(SyncOpenBooks::class) $schedule->command(SyncOpenBooks::class)
@@ -38,6 +36,7 @@ class Kernel extends ConsoleKernel
/** /**
* Register the commands for the application. * Register the commands for the application.
*
* @return void * @return void
*/ */
protected function commands() protected function commands()

View File

@@ -14,6 +14,7 @@ class ChatMessageSentEvent implements ShouldBroadcast
/** /**
* Create a new event instance. * Create a new event instance.
*
* @return void * @return void
*/ */
public function __construct() public function __construct()
@@ -23,6 +24,7 @@ class ChatMessageSentEvent implements ShouldBroadcast
/** /**
* Get the channels the event should broadcast on. * Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array * @return \Illuminate\Broadcasting\Channel|array
*/ */
public function broadcastOn() public function broadcastOn()

View File

@@ -14,6 +14,7 @@ class PlebLoggedInEvent implements ShouldBroadcast
/** /**
* Create a new event instance. * Create a new event instance.
*
* @return void * @return void
*/ */
public function __construct(public string $name, public string $img) public function __construct(public string $name, public string $img)
@@ -23,6 +24,7 @@ class PlebLoggedInEvent implements ShouldBroadcast
/** /**
* Get the channels the event should broadcast on. * Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array * @return \Illuminate\Broadcasting\Channel|array
*/ */
public function broadcastOn() public function broadcastOn()

View File

@@ -12,6 +12,7 @@ class BookCaseOrangePilled extends PointType
/** /**
* Number of points * Number of points
*
* @var int * @var int
*/ */
public $points = 210; public $points = 210;
@@ -28,6 +29,7 @@ class BookCaseOrangePilled extends PointType
/** /**
* User who will be receive points * User who will be receive points
*
* @return mixed * @return mixed
*/ */
public function payee() public function payee()

View File

@@ -12,6 +12,7 @@ class LanguageController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @return \Illuminate\Http\JsonResponse * @return \Illuminate\Http\JsonResponse
*/ */
public function index(Request $request) public function index(Request $request)
@@ -40,6 +41,7 @@ class LanguageController extends Controller
$language->toTranslate = Translation::query() $language->toTranslate = Translation::query()
->where('language_id', $language['id']) ->where('language_id', $language['id'])
->count(); ->count();
return $language; return $language;
}) })
->toArray(); ->toArray();
@@ -60,7 +62,6 @@ class LanguageController extends Controller
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function store(Request $request) public function store(Request $request)
@@ -72,7 +73,6 @@ class LanguageController extends Controller
* Display the specified resource. * Display the specified resource.
* *
* @param $language * @param $language
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function show(Language $language) public function show(Language $language)
@@ -85,7 +85,6 @@ class LanguageController extends Controller
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param $language * @param $language
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function update(Request $request, Language $language) public function update(Request $request, Language $language)
@@ -97,7 +96,6 @@ class LanguageController extends Controller
* Remove the specified resource from storage. * Remove the specified resource from storage.
* *
* @param $language * @param $language
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function destroy(Language $language) public function destroy(Language $language)

View File

@@ -11,11 +11,11 @@ class LecturerController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function index(Request $request) public function index(Request $request)
{ {
return Lecturer::query() return Lecturer::query()
->select('id', 'name', ) ->select('id', 'name', )
->orderBy('name') ->orderBy('name')
@@ -45,7 +45,6 @@ class LecturerController extends Controller
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function store(Request $request) public function store(Request $request)
@@ -57,7 +56,6 @@ class LecturerController extends Controller
* Display the specified resource. * Display the specified resource.
* *
* @param \App\Models\Lecturer $lecturer * @param \App\Models\Lecturer $lecturer
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function show(Lecturer $lecturer) public function show(Lecturer $lecturer)
@@ -70,7 +68,6 @@ class LecturerController extends Controller
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \App\Models\Lecturer $lecturer * @param \App\Models\Lecturer $lecturer
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function update(Request $request, Lecturer $lecturer) public function update(Request $request, Lecturer $lecturer)
@@ -82,7 +79,6 @@ class LecturerController extends Controller
* Remove the specified resource from storage. * Remove the specified resource from storage.
* *
* @param \App\Models\Lecturer $lecturer * @param \App\Models\Lecturer $lecturer
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function destroy(Lecturer $lecturer) public function destroy(Lecturer $lecturer)

View File

@@ -12,6 +12,7 @@ class MeetupController extends Controller
{ {
/** /**
* Display a listing of the resource. * Display a listing of the resource.
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function index(Request $request) public function index(Request $request)
@@ -49,7 +50,6 @@ class MeetupController extends Controller
* Store a newly created resource in storage. * Store a newly created resource in storage.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function store(Request $request) public function store(Request $request)
@@ -61,7 +61,6 @@ class MeetupController extends Controller
* Display the specified resource. * Display the specified resource.
* *
* @param \App\Models\meetup $meetup * @param \App\Models\meetup $meetup
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function show(meetup $meetup) public function show(meetup $meetup)
@@ -74,7 +73,6 @@ class MeetupController extends Controller
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \App\Models\meetup $meetup * @param \App\Models\meetup $meetup
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function update(Request $request, meetup $meetup) public function update(Request $request, meetup $meetup)
@@ -86,7 +84,6 @@ class MeetupController extends Controller
* Remove the specified resource from storage. * Remove the specified resource from storage.
* *
* @param \App\Models\meetup $meetup * @param \App\Models\meetup $meetup
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function destroy(meetup $meetup) public function destroy(meetup $meetup)

View File

@@ -13,7 +13,6 @@ class DownloadBitcoinEventCalendar extends Controller
* Handle the incoming request. * Handle the incoming request.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function __invoke(Request $request) public function __invoke(Request $request)

View File

@@ -14,7 +14,6 @@ class DownloadMeetupCalendar extends Controller
* Handle the incoming request. * Handle the incoming request.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function __invoke(Request $request) public function __invoke(Request $request)

View File

@@ -12,7 +12,6 @@ class ImageController extends Controller
* Handle the incoming request. * Handle the incoming request.
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function __invoke(Filesystem $filesystem, $path) public function __invoke(Filesystem $filesystem, $path)

View File

@@ -13,6 +13,7 @@ class Kernel extends HttpKernel
/** /**
* The application's global HTTP middleware stack. * The application's global HTTP middleware stack.
* These middleware are run during every request to your application. * These middleware are run during every request to your application.
*
* @var array<int, class-string|string> * @var array<int, class-string|string>
*/ */
protected $middleware = [ protected $middleware = [
@@ -27,6 +28,7 @@ class Kernel extends HttpKernel
/** /**
* The application's route middleware groups. * The application's route middleware groups.
*
* @var array<string, array<int, class-string|string>> * @var array<string, array<int, class-string|string>>
*/ */
protected $middlewareGroups = [ protected $middlewareGroups = [
@@ -72,6 +74,7 @@ class Kernel extends HttpKernel
/** /**
* The application's route middleware. * The application's route middleware.
* These middleware may be assigned to groups or used individually. * These middleware may be assigned to groups or used individually.
*
* @var array<string, class-string|string> * @var array<string, class-string|string>
*/ */
protected $routeMiddleware = [ protected $routeMiddleware = [

View File

@@ -8,6 +8,7 @@ use SimpleSoftwareIO\QrCode\Facades\QrCode;
class Auth47Component extends Component class Auth47Component extends Component
{ {
public ?string $k1 = null; public ?string $k1 = null;
protected ?string $url = null; protected ?string $url = null;
public function mount() public function mount()

View File

@@ -12,8 +12,11 @@ use SimpleSoftwareIO\QrCode\Facades\QrCode;
class LNUrlAuth extends Component class LNUrlAuth extends Component
{ {
public ?string $k1 = null; public ?string $k1 = null;
protected ?string $url = null; protected ?string $url = null;
protected ?string $lnurl = null; protected ?string $lnurl = null;
protected ?string $qrCode = null; protected ?string $qrCode = null;
public function switchToEmailLogin() public function switchToEmailLogin()

View File

@@ -61,7 +61,7 @@ class BitcoinEventTable extends Component
title: __('Bitcoin Events'), title: __('Bitcoin Events'),
description: __('Search out a Bitcoin Event'), description: __('Search out a Bitcoin Event'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
@@ -75,7 +75,7 @@ class BitcoinEventTable extends Component
'filters' => [ 'filters' => [
'byid' => $id, 'byid' => $id,
], ],
] ],
]); ]);
} }
@@ -88,8 +88,8 @@ class BitcoinEventTable extends Component
'bitcoin_events' => [ 'bitcoin_events' => [
'filters' => [ 'filters' => [
'byid' => $ids, 'byid' => $ids,
] ],
] ],
]); ]);
} }
} }

View File

@@ -10,7 +10,9 @@ use RalphJSmit\Laravel\SEO\Support\SEOData;
class BookCaseTable extends Component class BookCaseTable extends Component
{ {
public ?Country $country = null; public ?Country $country = null;
public string $c = 'de'; public string $c = 'de';
public array $bookcases = []; public array $bookcases = [];
protected $queryString = ['bookcases']; protected $queryString = ['bookcases'];
@@ -40,7 +42,7 @@ class BookCaseTable extends Component
title: __('Bookcases'), title: __('Bookcases'),
description: __('Search out a public bookcase'), description: __('Search out a public bookcase'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
} }

View File

@@ -17,7 +17,7 @@ class CityTable extends Component
title: __('Bookcases'), title: __('Bookcases'),
description: __('Search out a public bookcase'), description: __('Search out a public bookcase'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
} }

View File

@@ -21,8 +21,6 @@ class CommentBookCase extends Component
public BookCase $bookCase; public BookCase $bookCase;
public function render() public function render()
{ {
return view('livewire.book-case.comment-book-case') return view('livewire.book-case.comment-book-case')
@@ -31,7 +29,7 @@ class CommentBookCase extends Component
title: $this->bookCase->title, title: $this->bookCase->title,
description: $this->bookCase->address, description: $this->bookCase->address,
image: $this->bookCase->getFirstMediaUrl('images') ?? asset('img/bookcase.jpg'), image: $this->bookCase->getFirstMediaUrl('images') ?? asset('img/bookcase.jpg'),
) ),
]); ]);
} }

View File

@@ -15,6 +15,7 @@ class OrangePillForm extends Component
public Country $country; public Country $country;
public BookCase $bookCase; public BookCase $bookCase;
public ?OrangePill $orangePill = null; public ?OrangePill $orangePill = null;
public $image; public $image;

View File

@@ -28,7 +28,7 @@ class Heatmap extends Component
title: __('Heatmap of Bookcases'), title: __('Heatmap of Bookcases'),
description: __('On this map you can see the success and spread of the Bitcoin books.'), description: __('On this map you can see the success and spread of the Bitcoin books.'),
image: asset('img/heatmap_bookcases.png'), image: asset('img/heatmap_bookcases.png'),
) ),
]); ]);
} }
} }

View File

@@ -10,7 +10,9 @@ use RalphJSmit\Laravel\SEO\Support\SEOData;
class HighscoreTable extends Component class HighscoreTable extends Component
{ {
public Country $country; public Country $country;
public bool $viewingModal = false; public bool $viewingModal = false;
public ?User $modal = null; public ?User $modal = null;
public function render() public function render()
@@ -31,7 +33,7 @@ class HighscoreTable extends Component
title: __('Highscore Table'), title: __('Highscore Table'),
description: __('Hall of fame of our honorable plebs'), description: __('Hall of fame of our honorable plebs'),
image: asset('img/highscore_table_screenshot.png'), image: asset('img/highscore_table_screenshot.png'),
) ),
]); ]);
} }

View File

@@ -35,7 +35,7 @@ class WorldMap extends Component
title: __('World Map of Bookcases'), title: __('World Map of Bookcases'),
description: __('On this map you can see bookcases that have been orange pilled. You can also click on a marker to go to the search result.'), description: __('On this map you can see bookcases that have been orange pilled. You can also click on a marker to go to the search result.'),
image: asset('img/world_map_bookcases.png') image: asset('img/world_map_bookcases.png')
) ),
]); ]);
} }
} }

View File

@@ -10,6 +10,7 @@ class HighscoreChat extends Component
public bool $open = false; public bool $open = false;
public array $messages = []; public array $messages = [];
public string $myNewMessage = ''; public string $myNewMessage = '';
public function rules() public function rules()

View File

@@ -12,6 +12,7 @@ class ContentCreatorForm extends Component
use WithFileUploads; use WithFileUploads;
public ?Lecturer $lecturer = null; public ?Lecturer $lecturer = null;
public $image; public $image;
public ?string $fromUrl = ''; public ?string $fromUrl = '';

View File

@@ -11,8 +11,11 @@ use Livewire\Component;
class Header extends Component class Header extends Component
{ {
public ?Country $country = null; public ?Country $country = null;
public $currentRouteName; public $currentRouteName;
public string $c = 'de'; public string $c = 'de';
public string $l = 'de'; public string $l = 'de';
public $bgColor = 'bg-21gray'; public $bgColor = 'bg-21gray';

View File

@@ -10,6 +10,7 @@ use RalphJSmit\Laravel\SEO\Support\SEOData;
class Welcome extends Component class Welcome extends Component
{ {
public string $c = 'de'; public string $c = 'de';
public string $l = 'de'; public string $l = 'de';
protected $queryString = ['c', 'l']; protected $queryString = ['c', 'l'];
@@ -67,7 +68,7 @@ class Welcome extends Component
title: __('Welcome'), title: __('Welcome'),
description: __('Welcome to the portal of the Einundzwanzig Community.'), description: __('Welcome to the portal of the Einundzwanzig Community.'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
} }

View File

@@ -19,12 +19,17 @@ class LibraryItemForm extends Component
public Country $country; public Country $country;
public ?LibraryItem $libraryItem = null; public ?LibraryItem $libraryItem = null;
public $library; public $library;
public $image; public $image;
public $file; public $file;
public array $selectedTags = []; public array $selectedTags = [];
public bool $lecturer = false; public bool $lecturer = false;
public ?string $fromUrl = ''; public ?string $fromUrl = '';
protected $queryString = [ protected $queryString = [
@@ -51,7 +56,7 @@ class LibraryItemForm extends Component
$this->libraryItem->type !== LibraryItemType::MarkdownArticle $this->libraryItem->type !== LibraryItemType::MarkdownArticle
&& $this->libraryItem->type !== LibraryItemType::MarkdownArticleExtern && $this->libraryItem->type !== LibraryItemType::MarkdownArticleExtern
&& $this->libraryItem->type !== LibraryItemType::DownloadableFile, ['url'] && $this->libraryItem->type !== LibraryItemType::DownloadableFile, ['url']
) ),
], ],
'libraryItem.subtitle' => 'required', 'libraryItem.subtitle' => 'required',
'libraryItem.excerpt' => 'required', 'libraryItem.excerpt' => 'required',

View File

@@ -12,7 +12,9 @@ use RalphJSmit\Laravel\SEO\Support\SEOData;
class LibraryTable extends Component class LibraryTable extends Component
{ {
public Country $country; public Country $country;
public array $filters = []; public array $filters = [];
public bool $isLecturerPage = false; public bool $isLecturerPage = false;
public string $search = ''; public string $search = '';
@@ -61,7 +63,7 @@ class LibraryTable extends Component
$tabs = collect([ $tabs = collect([
[ [
'name' => '*', 'name' => '*',
] ],
]); ]);
foreach ($libraries as $library) { foreach ($libraries as $library) {
$tabs->push([ $tabs->push([
@@ -115,7 +117,7 @@ class LibraryTable extends Component
title: __('Library'), title: __('Library'),
description: __('Here you can find all content that are available in the library.'), description: __('Here you can find all content that are available in the library.'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
} }

View File

@@ -9,6 +9,7 @@ use Livewire\Component;
class SearchByTagComponent extends Component class SearchByTagComponent extends Component
{ {
public string $country = 'de'; public string $country = 'de';
public array $filters = []; public array $filters = [];
protected $queryString = [ protected $queryString = [

View File

@@ -12,10 +12,13 @@ class MeetupEventForm extends Component
use Actions; use Actions;
public string $country; public string $country;
public ?MeetupEvent $meetupEvent = null; public ?MeetupEvent $meetupEvent = null;
public bool $recurring = false; public bool $recurring = false;
public int $repetitions = 52; public int $repetitions = 52;
public array $series = []; public array $series = [];
public function rules() public function rules()

View File

@@ -11,7 +11,9 @@ use RalphJSmit\Laravel\SEO\Support\SEOData;
class LandingPage extends Component class LandingPage extends Component
{ {
public Meetup $meetup; public Meetup $meetup;
public Country $country; public Country $country;
public ?int $activeEvent = null; public ?int $activeEvent = null;
public ?int $year = null; public ?int $year = null;
@@ -55,7 +57,7 @@ class LandingPage extends Component
title: $this->meetup->name, title: $this->meetup->name,
description: __('Bitcoiner Meetups are a great way to meet other Bitcoiners in your area. You can learn from each other, share ideas, and have fun!'), description: __('Bitcoiner Meetups are a great way to meet other Bitcoiners in your area. You can learn from each other, share ideas, and have fun!'),
image: $this->meetup->getFirstMediaUrl('logo'), image: $this->meetup->getFirstMediaUrl('logo'),
) ),
]); ]);
} }

View File

@@ -12,10 +12,15 @@ use RalphJSmit\Laravel\SEO\Support\SEOData;
class LandingPageEvent extends Component class LandingPageEvent extends Component
{ {
public MeetupEvent $meetupEvent; public MeetupEvent $meetupEvent;
public Country $country; public Country $country;
public ?Meetup $meetup = null; public ?Meetup $meetup = null;
public bool $willShowUp = false; public bool $willShowUp = false;
public bool $perhapsShowUp = false; public bool $perhapsShowUp = false;
public string $name = ''; public string $name = '';
public function rules() public function rules()
@@ -23,7 +28,7 @@ class LandingPageEvent extends Component
return [ return [
'name' => [ 'name' => [
'required', 'required',
new UniqueAttendeeName($this->meetupEvent) new UniqueAttendeeName($this->meetupEvent),
], ],
]; ];
} }
@@ -153,7 +158,7 @@ class LandingPageEvent extends Component
title: $this->meetupEvent->start->asDateTime().' - '.$this->meetup->name, title: $this->meetupEvent->start->asDateTime().' - '.$this->meetup->name,
description: __('Here you can confirm your participation and find more information about the Meetup.').' - '.$this->meetupEvent->description, description: __('Here you can confirm your participation and find more information about the Meetup.').' - '.$this->meetupEvent->description,
image: $this->meetup->getFirstMediaUrl('logo'), image: $this->meetup->getFirstMediaUrl('logo'),
) ),
]); ]);
} }
} }

View File

@@ -61,7 +61,7 @@ class MeetupEventTable extends Component
title: __('Meetup dates'), title: __('Meetup dates'),
description: __('List of all meetup dates'), description: __('List of all meetup dates'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
@@ -75,11 +75,10 @@ class MeetupEventTable extends Component
'filters' => [ 'filters' => [
'byid' => $id, 'byid' => $id,
], ],
] ],
]); ]);
} }
public function popover($content, $ids) public function popover($content, $ids)
{ {
return to_route('meetup.table.meetupEvent', [ return to_route('meetup.table.meetupEvent', [
@@ -89,8 +88,8 @@ class MeetupEventTable extends Component
'meetup_events' => [ 'meetup_events' => [
'filters' => [ 'filters' => [
'byid' => $ids, 'byid' => $ids,
] ],
] ],
]); ]);
} }
} }

View File

@@ -44,7 +44,7 @@ class MeetupTable extends Component
title: __('Meetups'), title: __('Meetups'),
description: __('Bitcoiner Meetups are a great way to meet other Bitcoiners in your area. You can learn from each other, share ideas, and have fun!'), description: __('Bitcoiner Meetups are a great way to meet other Bitcoiners in your area. You can learn from each other, share ideas, and have fun!'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
} }

View File

@@ -20,6 +20,7 @@ class PrepareForBtcMapItem extends Component
public string $search = ''; public string $search = '';
public $population; public $population;
public $population_date = ''; public $population_date = '';
public ?int $osm_id = null; public ?int $osm_id = null;
@@ -156,7 +157,6 @@ class PrepareForBtcMapItem extends Component
// emit event for AlpineJS // emit event for AlpineJS
$this->emit('geoJsonUpdated'); $this->emit('geoJsonUpdated');
} catch (\Exception $e) { } catch (\Exception $e) {
$this->notification() $this->notification()
->error('Error', $e->getMessage()); ->error('Error', $e->getMessage());

View File

@@ -4,7 +4,6 @@ namespace App\Http\Livewire\Meetup;
use App\Models\Country; use App\Models\Country;
use App\Models\Meetup; use App\Models\Meetup;
use App\Models\MeetupEvent;
use Livewire\Component; use Livewire\Component;
use RalphJSmit\Laravel\SEO\Support\SEOData; use RalphJSmit\Laravel\SEO\Support\SEOData;
@@ -40,7 +39,7 @@ class WorldMap extends Component
'SEOData' => new SEOData( 'SEOData' => new SEOData(
title: __('World map of meetups'), title: __('World map of meetups'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
} }

View File

@@ -98,7 +98,7 @@ class ArticleOverview extends Component
title: __('News'), title: __('News'),
description: __('Here we post important news that is relevant for everyone.'), description: __('Here we post important news that is relevant for everyone.'),
image: asset('img/einundzwanzig-news-colored.png'), image: asset('img/einundzwanzig-news-colored.png'),
) ),
]); ]);
} }
} }

View File

@@ -12,10 +12,15 @@ class NewsArticleForm extends Component
use WithFileUploads; use WithFileUploads;
public ?LibraryItem $libraryItem = null; public ?LibraryItem $libraryItem = null;
public $image; public $image;
public $currentImage = 0; public $currentImage = 0;
public $images; public $images;
public $imagesCloned = []; public $imagesCloned = [];
public array $temporaryUrls = []; public array $temporaryUrls = [];
public function rules() public function rules()

View File

@@ -38,7 +38,7 @@ class InternArticleView extends Component
image: $this->libraryItem->getFirstMedia('main') ? $this->libraryItem->getFirstMediaUrl('main') : asset('img/einundzwanzig-wallpaper-benrath.png'), image: $this->libraryItem->getFirstMedia('main') ? $this->libraryItem->getFirstMediaUrl('main') : asset('img/einundzwanzig-wallpaper-benrath.png'),
published_time: Carbon::parse($this->libraryItem->created_at), published_time: Carbon::parse($this->libraryItem->created_at),
type: 'article', type: 'article',
) ),
]); ]);
} }
} }

View File

@@ -11,9 +11,13 @@ class Meetups extends Component
use Actions; use Actions;
public $search = ''; public $search = '';
public $meetups; public $meetups;
public $myMeetups = []; public $myMeetups = [];
public $myMeetupNames = []; public $myMeetupNames = [];
public $hasMeetups = false; public $hasMeetups = false;
public function rules() public function rules()

View File

@@ -17,7 +17,7 @@ class CityTable extends Component
title: __('Courses'), title: __('Courses'),
description: __('Choose your city, search for courses in the surrounding area and select a topic that suits you.'), description: __('Choose your city, search for courses in the surrounding area and select a topic that suits you.'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
} }

View File

@@ -17,7 +17,7 @@ class CourseTable extends Component
title: __('Courses'), title: __('Courses'),
description: __('Choose your city, search for courses in the surrounding area and select a topic that suits you.'), description: __('Choose your city, search for courses in the surrounding area and select a topic that suits you.'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
} }

View File

@@ -60,7 +60,7 @@ class EventTable extends Component
title: __('Dates'), title: __('Dates'),
description: __('Dates for courses about Bitcoin.'), description: __('Dates for courses about Bitcoin.'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
@@ -74,7 +74,7 @@ class EventTable extends Component
'filters' => [ 'filters' => [
'byid' => $id, 'byid' => $id,
], ],
] ],
]); ]);
} }
@@ -87,8 +87,8 @@ class EventTable extends Component
'course_events' => [ 'course_events' => [
'filters' => [ 'filters' => [
'byid' => $ids, 'byid' => $ids,
] ],
] ],
]); ]);
} }
} }

View File

@@ -11,9 +11,11 @@ use RalphJSmit\Laravel\SEO\Support\SEOData;
class LecturerLandingPage extends Component class LecturerLandingPage extends Component
{ {
public Lecturer $lecturer; public Lecturer $lecturer;
public Country $country; public Country $country;
public ?int $year = null; public ?int $year = null;
public ?int $activeEvent = null; public ?int $activeEvent = null;
public function render() public function render()
@@ -46,7 +48,7 @@ class LecturerLandingPage extends Component
title: $this->lecturer->name, title: $this->lecturer->name,
description: $this->lecturer->intro ?? __('This lecturer has not yet written an introduction.'), description: $this->lecturer->intro ?? __('This lecturer has not yet written an introduction.'),
image: $this->lecturer->getFirstMediaUrl('avatar'), image: $this->lecturer->getFirstMediaUrl('avatar'),
) ),
]); ]);
} }

View File

@@ -17,7 +17,7 @@ class LecturerTable extends Component
title: __('Lecturers'), title: __('Lecturers'),
description: __('Lecturers in the surrounding area.'), description: __('Lecturers in the surrounding area.'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
} }

View File

@@ -8,6 +8,7 @@ use Livewire\Component;
class SearchByTagComponent extends Component class SearchByTagComponent extends Component
{ {
public string $country = 'de'; public string $country = 'de';
public ?array $courses = []; public ?array $courses = [];
protected $queryString = [ protected $queryString = [

View File

@@ -17,7 +17,7 @@ class VenueTable extends Component
title: __('Venues'), title: __('Venues'),
description: __('Venues in the surrounding area.'), description: __('Venues in the surrounding area.'),
image: asset('img/screenshot.png') image: asset('img/screenshot.png')
) ),
]); ]);
} }
} }

View File

@@ -10,8 +10,8 @@ use Rappasoft\LaravelLivewireTables\Views\Filters\TextFilter;
class BitcoinEventTable extends DataTableComponent class BitcoinEventTable extends DataTableComponent
{ {
public string $country; public string $country;
public string $tableName = 'bitcoin_events'; public string $tableName = 'bitcoin_events';
public function configure(): void public function configure(): void
@@ -20,7 +20,7 @@ class BitcoinEventTable extends DataTableComponent
->setDefaultSort('from', 'asc') ->setDefaultSort('from', 'asc')
->setAdditionalSelects([ ->setAdditionalSelects([
'bitcoin_events.id', 'bitcoin_events.id',
'bitcoin_events.venue_id' 'bitcoin_events.venue_id',
]) ])
->setThAttributes(function (Column $column) { ->setThAttributes(function (Column $column) {
return [ return [
@@ -87,7 +87,7 @@ class BitcoinEventTable extends DataTableComponent
{ {
return BitcoinEvent::query() return BitcoinEvent::query()
->with([ ->with([
'venue.city.country' 'venue.city.country',
]) ])
->where('bitcoin_events.from', '>=', now()) ->where('bitcoin_events.from', '>=', now())
->where(fn ($query) => $query ->where(fn ($query) => $query

View File

@@ -3,9 +3,7 @@
namespace App\Http\Livewire\Tables; namespace App\Http\Livewire\Tables;
use App\Models\BookCase; use App\Models\BookCase;
use App\Models\OrangePill;
use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Builder;
use Livewire\WithFileUploads;
use Rappasoft\LaravelLivewireTables\DataTableComponent; use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Column; use Rappasoft\LaravelLivewireTables\Views\Column;
use Rappasoft\LaravelLivewireTables\Views\Filters\TextFilter; use Rappasoft\LaravelLivewireTables\Views\Filters\TextFilter;
@@ -16,6 +14,7 @@ class BookCaseTable extends DataTableComponent
use Actions; use Actions;
public string $country; public string $country;
public string $tableName = 'bookcases'; public string $tableName = 'bookcases';
public function configure(): void public function configure(): void
@@ -29,7 +28,6 @@ class BookCaseTable extends DataTableComponent
]; ];
}) })
->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) { ->setTdAttributes(function (Column $column, $row, $columnIndex, $rowIndex) {
return [ return [
'class' => 'px-6 py-4 text-sm font-medium dark:text-white', 'class' => 'px-6 py-4 text-sm font-medium dark:text-white',
'default' => false, 'default' => false,
@@ -39,7 +37,6 @@ class BookCaseTable extends DataTableComponent
->setPerPage(10); ->setPerPage(10);
} }
public function filters(): array public function filters(): array
{ {
return [ return [
@@ -54,17 +51,17 @@ class BookCaseTable extends DataTableComponent
public function columns(): array public function columns(): array
{ {
return [ return [
Column::make("Name", "title") Column::make('Name', 'title')
->sortable() ->sortable()
->searchable( ->searchable(
function (Builder $query, $searchTerm) { function (Builder $query, $searchTerm) {
$query->where('title', 'ilike', '%'.$searchTerm.'%'); $query->where('title', 'ilike', '%'.$searchTerm.'%');
} }
), ),
Column::make("Adresse", "address") Column::make('Adresse', 'address')
->sortable() ->sortable()
->searchable(), ->searchable(),
Column::make("Bitcoin-Bücher") Column::make('Bitcoin-Bücher')
->label( ->label(
fn ( fn (
$row, $row,
@@ -72,7 +69,7 @@ class BookCaseTable extends DataTableComponent
) => $row->orangePills->sum('amount') ) => $row->orangePills->sum('amount')
) )
->collapseOnMobile(), ->collapseOnMobile(),
Column::make("Letzter Input") Column::make('Letzter Input')
->label( ->label(
fn ( fn (
$row, $row,
@@ -82,7 +79,7 @@ class BookCaseTable extends DataTableComponent
->first()?->date->asDate() ->first()?->date->asDate()
) )
->collapseOnMobile(), ->collapseOnMobile(),
Column::make("Link") Column::make('Link')
->label( ->label(
fn ( fn (
$row, $row,

View File

@@ -14,6 +14,7 @@ class CityTable extends DataTableComponent
use Actions; use Actions;
public string $country; public string $country;
public string $type; public string $type;
public string $tableName = 'cities'; public string $tableName = 'cities';
@@ -48,7 +49,7 @@ class CityTable extends DataTableComponent
public function columns(): array public function columns(): array
{ {
$columns = collect([ $columns = collect([
Column::make("Stadt Name", "name") Column::make('Stadt Name', 'name')
->sortable() ->sortable()
->searchable(fn ($builder, $term) => $builder->where('cities.name', 'ilike', '%'.$term.'%')), ->searchable(fn ($builder, $term) => $builder->where('cities.name', 'ilike', '%'.$term.'%')),
]); ]);
@@ -96,6 +97,7 @@ class CityTable extends DataTableComponent
->find($id); ->find($id);
$query = City::radius($city->latitude, $city->longitude, 100) $query = City::radius($city->latitude, $city->longitude, 100)
->where('id', '!=', $id); ->where('id', '!=', $id);
return to_route('school.table.event', [ return to_route('school.table.event', [
'#table', '#table',
'country' => $this->country, 'country' => $this->country,
@@ -103,9 +105,9 @@ class CityTable extends DataTableComponent
'filters' => [ 'filters' => [
'stadt' => $query->pluck('name') 'stadt' => $query->pluck('name')
->push($city->name) ->push($city->name)
->implode(',') ->implode(','),
],
], ],
]
]); ]);
} }
@@ -118,6 +120,7 @@ class CityTable extends DataTableComponent
if ($ids->isEmpty()) { if ($ids->isEmpty()) {
$this->notification() $this->notification()
->error(__('No bookcases found in the radius of 5km')); ->error(__('No bookcases found in the radius of 5km'));
return; return;
} }
@@ -126,9 +129,9 @@ class CityTable extends DataTableComponent
'country' => $this->country, 'country' => $this->country,
'bookcases' => [ 'bookcases' => [
'filters' => [ 'filters' => [
'byids' => $ids->implode(',') 'byids' => $ids->implode(','),
],
], ],
]
]); ]);
} }
} }

View File

@@ -12,6 +12,7 @@ use Rappasoft\LaravelLivewireTables\Views\Filters\MultiSelectFilter;
class CourseTable extends DataTableComponent class CourseTable extends DataTableComponent
{ {
public string $country; public string $country;
public string $tableName = 'courses'; public string $tableName = 'courses';
public function configure(): void public function configure(): void
@@ -54,28 +55,28 @@ class CourseTable extends DataTableComponent
public function columns(): array public function columns(): array
{ {
return [ return [
Column::make('Dozent', "lecturer.name") Column::make('Dozent', 'lecturer.name')
->label( ->label(
fn ($row, Column $column) => view('columns.courses.lecturer')->withRow($row) fn ($row, Column $column) => view('columns.courses.lecturer')->withRow($row)
) )
->sortable() ->sortable()
->collapseOnMobile(), ->collapseOnMobile(),
Column::make("Name", "name") Column::make('Name', 'name')
->searchable(fn (Builder $query, string $term) => $query->where('name', 'ilike', '%'.$term.'%')) ->searchable(fn (Builder $query, string $term) => $query->where('name', 'ilike', '%'.$term.'%'))
->sortable(), ->sortable(),
Column::make("Tags") Column::make('Tags')
->label( ->label(
fn ($row, Column $column) => view('columns.courses.tags')->withRow($row) fn ($row, Column $column) => view('columns.courses.tags')->withRow($row)
) )
->collapseOnMobile(), ->collapseOnMobile(),
Column::make("Termine") Column::make('Termine')
->label( ->label(
fn ($row, Column $column) => '<strong>'.$row->course_events_count.'</strong>' fn ($row, Column $column) => '<strong>'.$row->course_events_count.'</strong>'
) )
->html() ->html()
->sortable() ->sortable()
->collapseOnMobile(), ->collapseOnMobile(),
Column::make("Erstellt am", "created_at") Column::make('Erstellt am', 'created_at')
->sortable() ->sortable()
->collapseOnMobile(), ->collapseOnMobile(),
Column::make('') Column::make('')
@@ -110,7 +111,7 @@ class CourseTable extends DataTableComponent
'filters' => [ 'filters' => [
'course_id' => $id, 'course_id' => $id,
], ],
] ],
]); ]);
} }
} }

View File

@@ -15,8 +15,11 @@ use Rappasoft\LaravelLivewireTables\Views\Filters\TextFilter;
class EventTable extends DataTableComponent class EventTable extends DataTableComponent
{ {
public string $country; public string $country;
public bool $viewingModal = false; public bool $viewingModal = false;
public $currentModal; public $currentModal;
public string $tableName = 'course_events'; public string $tableName = 'course_events';
public function configure(): void public function configure(): void
@@ -117,31 +120,31 @@ class EventTable extends DataTableComponent
public function columns(): array public function columns(): array
{ {
return [ return [
Column::make(_('City'), "venue.city.name") Column::make(_('City'), 'venue.city.name')
->sortable() ->sortable()
->collapseOnMobile(), ->collapseOnMobile(),
Column::make(__('Venue'), "venue.name") Column::make(__('Venue'), 'venue.name')
->sortable() ->sortable()
->collapseOnMobile(), ->collapseOnMobile(),
Column::make(__('Lecturer'), "course.lecturer.name") Column::make(__('Lecturer'), 'course.lecturer.name')
->label( ->label(
fn ($row, Column $column) => view('columns.events.lecturer')->withRow($row) fn ($row, Column $column) => view('columns.events.lecturer')->withRow($row)
) )
->sortable() ->sortable()
->collapseOnMobile(), ->collapseOnMobile(),
Column::make(__('Course'), "course.name") Column::make(__('Course'), 'course.name')
->sortable(), ->sortable(),
Column::make(__('Type')) Column::make(__('Type'))
->label( ->label(
fn ($row, Column $column) => view('columns.events.categories')->withRow($row) fn ($row, Column $column) => view('columns.events.categories')->withRow($row)
) )
->collapseOnMobile(), ->collapseOnMobile(),
Column::make(__('From'), "from") Column::make(__('From'), 'from')
->format( ->format(
fn ($value, $row, Column $column) => $value->asDateTime() fn ($value, $row, Column $column) => $value->asDateTime()
) )
->sortable(), ->sortable(),
Column::make(__('To'), "to") Column::make(__('To'), 'to')
->format( ->format(
fn ($value, $row, Column $column) => $value->asDateTime() fn ($value, $row, Column $column) => $value->asDateTime()
) )

View File

@@ -12,6 +12,7 @@ use Rappasoft\LaravelLivewireTables\Views\Columns\ImageColumn;
class LecturerTable extends DataTableComponent class LecturerTable extends DataTableComponent
{ {
public string $country; public string $country;
public string $tableName = 'lecturers'; public string $tableName = 'lecturers';
public function configure(): void public function configure(): void
@@ -46,10 +47,10 @@ class LecturerTable extends DataTableComponent
'alt' => $row->name.' Avatar', 'alt' => $row->name.' Avatar',
]) ])
->collapseOnMobile(), ->collapseOnMobile(),
Column::make("Name", "name") Column::make('Name', 'name')
->searchable(fn ($query, $term) => $query->where('name', 'ilike', '%'.$term.'%')) ->searchable(fn ($query, $term) => $query->where('name', 'ilike', '%'.$term.'%'))
->sortable(), ->sortable(),
BooleanColumn::make("Aktiv", 'active') BooleanColumn::make('Aktiv', 'active')
->sortable() ->sortable()
->collapseOnMobile(), ->collapseOnMobile(),
Column::make('Kurse') Column::make('Kurse')
@@ -94,7 +95,7 @@ class LecturerTable extends DataTableComponent
'filters' => [ 'filters' => [
'dozent' => $lecturer->id, 'dozent' => $lecturer->id,
], ],
] ],
]); ]);
} else { } else {
return to_route('library.table.libraryItems', [ return to_route('library.table.libraryItems', [
@@ -104,7 +105,7 @@ class LecturerTable extends DataTableComponent
'filters' => [ 'filters' => [
'lecturer_id' => $lecturer->id, 'lecturer_id' => $lecturer->id,
], ],
] ],
]); ]);
} }
} }

View File

@@ -17,6 +17,7 @@ use Spatie\LaravelOptions\Options;
class LibraryItemTable extends DataTableComponent class LibraryItemTable extends DataTableComponent
{ {
public string $currentTab; public string $currentTab;
public string $tableName = 'library_items'; public string $tableName = 'library_items';
public function configure(): void public function configure(): void
@@ -118,15 +119,15 @@ class LibraryItemTable extends DataTableComponent
fn ($row, Column $column) => view('columns.library_items.image')->withRow($row) fn ($row, Column $column) => view('columns.library_items.image')->withRow($row)
) )
->collapseOnMobile(), ->collapseOnMobile(),
Column::make(__('Creator'), "lecturer.name") Column::make(__('Creator'), 'lecturer.name')
->label( ->label(
fn ($row, Column $column) => view('columns.courses.lecturer')->withRow($row) fn ($row, Column $column) => view('columns.courses.lecturer')->withRow($row)
) )
->sortable() ->sortable()
->collapseOnMobile(), ->collapseOnMobile(),
Column::make("Name", "name") Column::make('Name', 'name')
->sortable(), ->sortable(),
Column::make("Art", "type") Column::make('Art', 'type')
->format( ->format(
function ($value, $row, Column $column) { function ($value, $row, Column $column) {
return '<span class="whitespace-nowrap inline-flex items-center rounded-full bg-amber-400 px-2.5 py-0.5 text-base font-medium text-gray-900"><i class="mr-2 fa fa-thin fa-' return '<span class="whitespace-nowrap inline-flex items-center rounded-full bg-amber-400 px-2.5 py-0.5 text-base font-medium text-gray-900"><i class="mr-2 fa fa-thin fa-'
@@ -138,7 +139,7 @@ class LibraryItemTable extends DataTableComponent
->html() ->html()
->sortable() ->sortable()
->collapseOnMobile(), ->collapseOnMobile(),
Column::make("Tags") Column::make('Tags')
->label( ->label(
fn ($row, Column $column) => view('columns.library_items.tags')->withRow($row) fn ($row, Column $column) => view('columns.library_items.tags')->withRow($row)
) )

View File

@@ -29,15 +29,15 @@ class MeetupForBtcMapTable extends DataTableComponent
public function columns(): array public function columns(): array
{ {
return [ return [
Column::make("Id", "id") Column::make('Id', 'id')
->sortable(), ->sortable(),
Column::make("Name", "name") Column::make('Name', 'name')
->sortable(), ->sortable(),
Column::make("City", "city.name") Column::make('City', 'city.name')
->sortable(), ->sortable(),
Column::make("Country", "city.country.name") Column::make('Country', 'city.country.name')
->sortable(), ->sortable(),
Column::make("Actions") Column::make('Actions')
->label(fn ($row, Column $column) => view('columns.meetups.osm-actions', ['row' => $row])), ->label(fn ($row, Column $column) => view('columns.meetups.osm-actions', ['row' => $row])),
]; ];
} }

View File

@@ -11,6 +11,7 @@ use Rappasoft\LaravelLivewireTables\Views\Filters\TextFilter;
class MeetupTable extends DataTableComponent class MeetupTable extends DataTableComponent
{ {
public ?string $country = null; public ?string $country = null;
public string $tableName = 'meetups'; public string $tableName = 'meetups';
public function configure(): void public function configure(): void
@@ -98,7 +99,7 @@ class MeetupTable extends DataTableComponent
'country' => $this->country ?? $meetup->city->country->code, 'country' => $this->country ?? $meetup->city->country->code,
'meetup_events' => [ 'meetup_events' => [
'filters' => ['bymeetupid' => $id], 'filters' => ['bymeetupid' => $id],
] ],
]); ]);
} }
} }

View File

@@ -46,10 +46,10 @@ class VenueTable extends DataTableComponent
'alt' => $row->name.' Avatar', 'alt' => $row->name.' Avatar',
]) ])
->collapseOnMobile(), ->collapseOnMobile(),
Column::make("Name", "name") Column::make('Name', 'name')
->searchable(fn ($query, $term) => $query->where('name', 'ilike', '%'.$term.'%')) ->searchable(fn ($query, $term) => $query->where('name', 'ilike', '%'.$term.'%'))
->sortable(), ->sortable(),
Column::make("Street", "street") Column::make('Street', 'street')
->sortable() ->sortable()
->collapseOnMobile(), ->collapseOnMobile(),
Column::make('Termine') Column::make('Termine')
@@ -87,7 +87,7 @@ class VenueTable extends DataTableComponent
'filters' => [ 'filters' => [
'venue' => $venue->name, 'venue' => $venue->name,
], ],
] ],
]); ]);
} }
} }

View File

@@ -15,7 +15,6 @@ class CustomEnsureEmailVerified
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
*
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
*/ */
public function handle(Request $request, Closure $next, $redirectToRoute = null) public function handle(Request $request, Closure $next, $redirectToRoute = null)

View File

@@ -4,8 +4,6 @@ namespace App\Http\Middleware;
use Closure; use Closure;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Cookie;
class NeedMeetupMiddleware class NeedMeetupMiddleware
{ {
@@ -14,7 +12,6 @@ class NeedMeetupMiddleware
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
*
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
*/ */
public function handle(Request $request, Closure $next) public function handle(Request $request, Closure $next)

View File

@@ -14,7 +14,6 @@ class SetTimezoneForNovaMiddleware
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
*
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
*/ */
public function handle(Request $request, Closure $next) public function handle(Request $request, Closure $next)

View File

@@ -14,7 +14,6 @@ class SetTimezoneMiddleware
* *
* @param \Illuminate\Http\Request $request * @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
*
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
*/ */
public function handle(Request $request, Closure $next) public function handle(Request $request, Closure $next)

View File

@@ -9,6 +9,7 @@ class AddLoginReputation
{ {
/** /**
* Create the event listener. * Create the event listener.
*
* @return void * @return void
*/ */
public function __construct() public function __construct()
@@ -20,7 +21,6 @@ class AddLoginReputation
* Handle the event. * Handle the event.
* *
* @param object $event * @param object $event
*
* @return void * @return void
*/ */
public function handle($event) public function handle($event)

View File

@@ -17,12 +17,14 @@ class BitcoinEvent extends Model implements HasMedia
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -3,7 +3,6 @@
namespace App\Models; namespace App\Models;
use Akuechler\Geoly; use Akuechler\Geoly;
use App\Models\Scopes\ActiveBookCases;
use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsTo;
@@ -23,12 +22,14 @@ class BookCase extends Model implements HasMedia
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -12,12 +12,14 @@ class Category extends Model
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -19,12 +19,14 @@ class City extends Model
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [
@@ -69,12 +71,12 @@ class City extends Model
return $this->hasMany(Venue::class); return $this->hasMany(Venue::class);
} }
function courseEvents() public function courseEvents()
{ {
return $this->hasManyThrough(CourseEvent::class, Venue::class); return $this->hasManyThrough(CourseEvent::class, Venue::class);
} }
function meetups() public function meetups()
{ {
return $this->hasMany(Meetup::class); return $this->hasMany(Meetup::class);
} }

View File

@@ -12,12 +12,14 @@ class Country extends Model
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -21,12 +21,14 @@ class Course extends Model implements HasMedia
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -13,12 +13,14 @@ class CourseEvent extends Model
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -15,12 +15,14 @@ class Episode extends Model
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -23,11 +23,14 @@ class Lecturer extends Model implements HasMedia
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -6,7 +6,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Library extends Model class Library extends Model
{ {
@@ -14,12 +13,14 @@ class Library extends Model
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -31,12 +31,14 @@ class LibraryItem extends Model implements HasMedia, Sortable, Feedable
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [
@@ -95,7 +97,7 @@ class LibraryItem extends Model implements HasMedia, Sortable, Feedable
$this->addMediaCollection('single_file') $this->addMediaCollection('single_file')
->acceptsMimeTypes([ ->acceptsMimeTypes([
'application/pdf', 'application/zip', 'application/octet-stream', 'application/x-zip-compressed', 'application/pdf', 'application/zip', 'application/octet-stream', 'application/x-zip-compressed',
'multipart/x-zip' 'multipart/x-zip',
]) ])
->singleFile(); ->singleFile();
$this->addMediaCollection('images') $this->addMediaCollection('images')

View File

@@ -11,12 +11,14 @@ class LoginKey extends Model
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = []; protected $casts = [];

View File

@@ -23,11 +23,14 @@ class Meetup extends Model implements HasMedia
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [
@@ -109,7 +112,7 @@ class Meetup extends Model implements HasMedia
'w' => 900, 'w' => 900,
'h' => 900, 'h' => 900,
'fit' => 'crop', 'fit' => 'crop',
'fm' => 'webp' 'fm' => 'webp',
]), ]),
); );
} }

View File

@@ -14,12 +14,14 @@ class MeetupEvent extends Model
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -8,6 +8,7 @@ class Membership extends JetstreamMembership
{ {
/** /**
* Indicates if the IDs are auto-incrementing. * Indicates if the IDs are auto-incrementing.
*
* @var bool * @var bool
*/ */
public $incrementing = true; public $incrementing = true;

View File

@@ -18,12 +18,14 @@ class OrangePill extends Model implements HasMedia
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -11,12 +11,14 @@ class Participant extends Model
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -13,12 +13,14 @@ class Podcast extends Model
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -12,12 +12,14 @@ class Registration extends Model
/** /**
* The attributes that aren't mass assignable. * The attributes that aren't mass assignable.
*
* @var array * @var array
*/ */
protected $guarded = []; protected $guarded = [];
/** /**
* The attributes that should be cast to native types. * The attributes that should be cast to native types.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [

View File

@@ -13,7 +13,6 @@ class ActiveBookCases implements Scope
* *
* @param \Illuminate\Database\Eloquent\Builder $builder * @param \Illuminate\Database\Eloquent\Builder $builder
* @param \Illuminate\Database\Eloquent\Model $model * @param \Illuminate\Database\Eloquent\Model $model
*
* @return void * @return void
*/ */
public function apply(Builder $builder, Model $model) public function apply(Builder $builder, Model $model)

View File

@@ -14,6 +14,7 @@ class Team extends JetstreamTeam
/** /**
* The attributes that should be cast. * The attributes that should be cast.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [
@@ -22,6 +23,7 @@ class Team extends JetstreamTeam
/** /**
* The attributes that are mass assignable. * The attributes that are mass assignable.
*
* @var string[] * @var string[]
*/ */
protected $fillable = [ protected $fillable = [
@@ -31,6 +33,7 @@ class Team extends JetstreamTeam
/** /**
* The event map for the model. * The event map for the model.
*
* @var array * @var array
*/ */
protected $dispatchesEvents = [ protected $dispatchesEvents = [

View File

@@ -9,6 +9,7 @@ class TeamInvitation extends JetstreamTeamInvitation
{ {
/** /**
* The attributes that are mass assignable. * The attributes that are mass assignable.
*
* @var string[] * @var string[]
*/ */
protected $fillable = [ protected $fillable = [
@@ -18,6 +19,7 @@ class TeamInvitation extends JetstreamTeamInvitation
/** /**
* Get the team that the invitation belongs to. * Get the team that the invitation belongs to.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/ */
public function team() public function team()

View File

@@ -10,14 +10,14 @@ use Laravel\Fortify\TwoFactorAuthenticatable;
use Laravel\Jetstream\HasProfilePhoto; use Laravel\Jetstream\HasProfilePhoto;
use Laravel\Jetstream\HasTeams; use Laravel\Jetstream\HasTeams;
use Laravel\Sanctum\HasApiTokens; use Laravel\Sanctum\HasApiTokens;
use ParagonIE\CipherSweet\BlindIndex;
use ParagonIE\CipherSweet\EncryptedRow;
use QCod\Gamify\Gamify; use QCod\Gamify\Gamify;
use Spatie\Comments\Models\Concerns\InteractsWithComments; use Spatie\Comments\Models\Concerns\InteractsWithComments;
use Spatie\Comments\Models\Concerns\Interfaces\CanComment; use Spatie\Comments\Models\Concerns\Interfaces\CanComment;
use Spatie\LaravelCipherSweet\Concerns\UsesCipherSweet; use Spatie\LaravelCipherSweet\Concerns\UsesCipherSweet;
use Spatie\LaravelCipherSweet\Contracts\CipherSweetEncrypted; use Spatie\LaravelCipherSweet\Contracts\CipherSweetEncrypted;
use Spatie\Permission\Traits\HasRoles; use Spatie\Permission\Traits\HasRoles;
use ParagonIE\CipherSweet\EncryptedRow;
use ParagonIE\CipherSweet\BlindIndex;
class User extends Authenticatable implements MustVerifyEmail, CanComment, CipherSweetEncrypted class User extends Authenticatable implements MustVerifyEmail, CanComment, CipherSweetEncrypted
{ {
@@ -36,6 +36,7 @@ class User extends Authenticatable implements MustVerifyEmail, CanComment, Ciphe
/** /**
* The attributes that should be hidden for serialization. * The attributes that should be hidden for serialization.
*
* @var array * @var array
*/ */
protected $hidden = [ protected $hidden = [
@@ -47,6 +48,7 @@ class User extends Authenticatable implements MustVerifyEmail, CanComment, Ciphe
/** /**
* The attributes that should be cast. * The attributes that should be cast.
*
* @var array * @var array
*/ */
protected $casts = [ protected $casts = [
@@ -55,6 +57,7 @@ class User extends Authenticatable implements MustVerifyEmail, CanComment, Ciphe
/** /**
* The accessors to append to the model's array form. * The accessors to append to the model's array form.
*
* @var array * @var array
*/ */
protected $appends = [ protected $appends = [

Some files were not shown because too many files have changed in this diff Show More