mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
21 lines
483 B
PHP
21 lines
483 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Http\Transformers\ImportsTransformer;
|
|
use App\Models\Import;
|
|
use Illuminate\Http\Request;
|
|
use App\Models\Asset;
|
|
|
|
|
|
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);
|
|
}
|
|
}
|