mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
add visible_on_map field to meetups table
This commit is contained in:
@@ -31,6 +31,7 @@ class MeetupEventTable extends Component
|
|||||||
{
|
{
|
||||||
return view('livewire.meetup.meetup-event-table', [
|
return view('livewire.meetup.meetup-event-table', [
|
||||||
'markers' => MeetupEvent::query()
|
'markers' => MeetupEvent::query()
|
||||||
|
->where('visible_on_map', true)
|
||||||
->with([
|
->with([
|
||||||
'meetup.city.country',
|
'meetup.city.country',
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ class MeetupTable extends Component
|
|||||||
|
|
||||||
return view('livewire.meetup.meetup-table', [
|
return view('livewire.meetup.meetup-table', [
|
||||||
'markers' => Meetup::query()
|
'markers' => Meetup::query()
|
||||||
|
->where('visible_on_map', true)
|
||||||
->with([
|
->with([
|
||||||
'city.country',
|
'city.country',
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ class WorldMap extends Component
|
|||||||
{
|
{
|
||||||
return view('livewire.meetup.world-map', [
|
return view('livewire.meetup.world-map', [
|
||||||
'allMarkers' => Meetup::query()
|
'allMarkers' => Meetup::query()
|
||||||
|
->where('visible_on_map', true)
|
||||||
->with([
|
->with([
|
||||||
'city.country',
|
'city.country',
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration {
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('meetups', function (Blueprint $table) {
|
||||||
|
$table->boolean('visible_on_map')->default(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('meetups', function (Blueprint $table) {
|
||||||
|
//
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -35,6 +35,7 @@ Route::middleware([])
|
|||||||
Route::resource('languages', \App\Http\Controllers\Api\LanguageController::class);
|
Route::resource('languages', \App\Http\Controllers\Api\LanguageController::class);
|
||||||
Route::get('meetups', function () {
|
Route::get('meetups', function () {
|
||||||
return \App\Models\Meetup::query()
|
return \App\Models\Meetup::query()
|
||||||
|
->where('visible_on_map', true)
|
||||||
->with([
|
->with([
|
||||||
'city',
|
'city',
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -729,9 +729,9 @@ __metadata:
|
|||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"caniuse-lite@npm:^1.0.30001426, caniuse-lite@npm:^1.0.30001449":
|
"caniuse-lite@npm:^1.0.30001426, caniuse-lite@npm:^1.0.30001449":
|
||||||
version: 1.0.30001450
|
version: 1.0.30001519
|
||||||
resolution: "caniuse-lite@npm:1.0.30001450"
|
resolution: "caniuse-lite@npm:1.0.30001519"
|
||||||
checksum: 511b360bfc907b2e437699364cf96b83507bc45043926450056642332bcd6f65a1e72540c828534ae15e0ac906e3e9af46cb2bb84458dd580bc31478e9dce282
|
checksum: 66085133ede05d947e30b62fed2cbae18e5767afda8b0de38840883e1cfe5846bf1568ddbafd31647544e59112355abedaf9c867ac34541bfc20d69e7a19d94c
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user