Skip to content

Commit

Permalink
Updated Laravel and Livewire
Browse files Browse the repository at this point in the history
Signed-off-by: Gertjan Roke <[email protected]>
  • Loading branch information
GertjanRoke committed Apr 28, 2021
1 parent eae30dd commit f06483a
Show file tree
Hide file tree
Showing 14 changed files with 2,123 additions and 1,151 deletions.
8 changes: 4 additions & 4 deletions app/Http/Livewire/AlpineJsEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

class AlpineJsEventListener extends Component
{
public function render()
public function emitEvent()
{
return view('livewire.alpine-js-event-listener');
$this->emit('somethingUpdated');
}

public function updatingSomething()
public function render()
{
$this->emit('somethingUpdated');
return view('livewire.alpine-js-event-listener');
}
}
11 changes: 0 additions & 11 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@

class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to your controller routes.
*
* In addition, it is set as the URL generator's root namespace.
*
* @var string
*/
protected $namespace = 'App\Http\Controllers';

/**
* The path to the "home" route for your application.
*
Expand Down Expand Up @@ -59,7 +50,6 @@ public function map()
protected function mapWebRoutes()
{
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
}

Expand All @@ -74,7 +64,6 @@ protected function mapApiRoutes()
{
Route::prefix('api')
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
}
}
22 changes: 9 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
],
"license": "MIT",
"require": {
"php": "^7.2.5",
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "^7.0",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.0",
"laravel/tinker": "^2.0",
"livewire/livewire": "1.x-dev"
"livewire/livewire": "^2.0"
},
"require-dev": {
"facade/ignition": "^2.0",
"facade/ignition": "^2.4.2",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.0"
},
"config": {
"optimize-autoloader": true,
Expand All @@ -36,11 +36,7 @@
"autoload": {
"psr-4": {
"App\\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
}
},
"autoload-dev": {
"psr-4": {
Expand Down
Loading

0 comments on commit f06483a

Please sign in to comment.