mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-20 04:24:23 -08:00
19 lines
460 B
PHP
19 lines
460 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use App\Http\Transformers\ImportsTransformer;
|
||
|
use App\Models\Import;
|
||
|
use Illuminate\Http\Request;
|
||
|
|
||
|
class ImportsController extends Controller
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
$this->authorize('create', Asset::class);
|
||
|
$imports = Import::latest()->get();
|
||
|
$imports = (new ImportsTransformer)->transformImports($imports);
|
||
|
return view('importer/import')->with('imports', $imports);
|
||
|
}
|
||
|
}
|