mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 23:19:42 -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);
|
||
|
}
|
||
|
}
|