You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
650 B
29 lines
650 B
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: weizongsong
|
|
* Date: 2019-04-12
|
|
* Time: 22:34
|
|
*/
|
|
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
use App\Forms\TrainingForm;
|
|
use App\Models\Training;
|
|
use Illuminate\Http\Request;
|
|
|
|
class TrainingController extends CommonController
|
|
{
|
|
public $bladePath = "admin.training";
|
|
public $urlPrefix = "admin/training";
|
|
public $modelName = "培训视频";
|
|
public $modelClass = Training::class;
|
|
public $formClass = TrainingForm::class;
|
|
|
|
public function index(Request $request)
|
|
{
|
|
$data = $this->model->paginate(10);
|
|
return view($this->bladePath . ".index", compact("data"));
|
|
}
|
|
}
|