Add all files
This commit is contained in:
23
app/Livewire/Component.php
Normal file
23
app/Livewire/Component.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire;
|
||||
|
||||
use App\Exceptions\DisplayException;
|
||||
|
||||
class Component extends \Livewire\Component
|
||||
{
|
||||
use Traits\Disabled, Traits\HasNotifications;
|
||||
|
||||
public function paginationView()
|
||||
{
|
||||
return 'components.pagination';
|
||||
}
|
||||
|
||||
public function exception($e, $stopPropagation)
|
||||
{
|
||||
if ($e instanceof DisplayException) {
|
||||
$this->notify($e->getMessage(), 'error');
|
||||
$stopPropagation();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user