diff --git a/routes/web.php b/routes/web.php index d4b6d6d8..5a4192fd 100644 --- a/routes/web.php +++ b/routes/web.php @@ -2,6 +2,7 @@ use App\Classes\General\Services\GeneratesInitials; use App\Models\CompanyConnection; +use App\Models\OldCompany; use App\Models\Order; use Illuminate\Support\Facades\Route; @@ -68,10 +69,11 @@ Route::get('/customer/{marking}', function ($marking) { Route::get('/order/{id}/download', 'Orders\DownloadOrderQrPdfController@download')->name('order.qr.download'); Route::get('/test', function(){ + dd(count(OldCompany::all())); $companyConnections = CompanyConnection::all(); foreach ($companyConnections as $connection){ $company = $connection->invitee; - $oldCompany = \App\Models\OldCompany::where('name', 'LIKE', '%'.$company->name.'%')->first(); + $oldCompany = OldCompany::where('name', 'LIKE', '%'.$company->name.'%')->first(); if ($oldCompany){ $marking = explode("CIEF/", $oldCompany->marking); $marking = str_replace(' ', '', str_replace('/', '', $marking[1]));