Migrate to new namespace

This commit is contained in:
Marcus Moore 2024-05-29 12:07:48 -07:00
parent 4ae74fb7f6
commit b52380f376
No known key found for this signature in database
9 changed files with 11 additions and 11 deletions

View file

@ -1,6 +1,6 @@
<?php <?php
namespace App\Http\Livewire; namespace App\Livewire;
use Livewire\Component; use Livewire\Component;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace App\Http\Livewire; namespace App\Livewire;
use Livewire\Component; use Livewire\Component;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace App\Http\Livewire; namespace App\Livewire;
use App\Models\CustomField; use App\Models\CustomField;
use Livewire\Component; use Livewire\Component;
@ -60,7 +60,7 @@ class Importer extends Component
]; ];
/** /**
* This is used in resources/views/livewire/importer.blade.php, and we kinda shouldn't need to check for * This is used in resources/views/livewire.importer.blade.php, and we kinda shouldn't need to check for
* activeFile here, but there's some UI goofiness that allows this to crash out on some imports. * activeFile here, but there's some UI goofiness that allows this to crash out on some imports.
* *
* @return string * @return string
@ -548,7 +548,7 @@ class Importer extends Component
public function render() public function render()
{ {
$this->files = Import::orderBy('id','desc')->get(); //HACK - slows down renders. $this->files = Import::orderBy('id','desc')->get(); //HACK - slows down renders.
return view('livewire.importer') return view('')
->extends('layouts.default') ->extends('layouts.default')
->section('content'); ->section('content');
} }

View file

@ -1,5 +1,5 @@
<?php <?php
namespace App\Http\Livewire; namespace App\Livewire;
use Livewire\Component; use Livewire\Component;
use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Log;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace App\Http\Livewire; namespace App\Livewire;
use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Log;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace App\Http\Livewire; namespace App\Livewire;
use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Log;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace App\Http\Livewire; namespace App\Livewire;
use GuzzleHttp\Client; use GuzzleHttp\Client;
use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Http;

View file

@ -262,7 +262,7 @@ Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'authorize:superuser
*/ */
Route::get('/import', Route::get('/import',
\App\Http\Livewire\Importer::class \App\Livewire\Importer::class
)->middleware('auth')->name('imports.index'); )->middleware('auth')->name('imports.index');
/* /*

View file

@ -2,7 +2,7 @@
namespace Tests\Feature\Livewire; namespace Tests\Feature\Livewire;
use App\Http\Livewire\CategoryEditForm; use App\Livewire\CategoryEditForm;
use Livewire\Livewire; use Livewire\Livewire;
use Tests\TestCase; use Tests\TestCase;