32 lines
486 B
PHP
32 lines
486 B
PHP
<?php namespace Controllers\Admin;
|
|
|
|
use AdminController;
|
|
use Input;
|
|
use Lang;
|
|
use Model;
|
|
use Redirect;
|
|
use Sentry;
|
|
use Str;
|
|
use Validator;
|
|
use View;
|
|
|
|
class ModelsController extends AdminController {
|
|
|
|
/**
|
|
* Show a list of all the blog posts.
|
|
*
|
|
* @return View
|
|
*/
|
|
public function getIndex()
|
|
{
|
|
// Grab all the blog posts
|
|
$models = Model::orderBy('created_at', 'DESC')->paginate(10);
|
|
|
|
// Show the page
|
|
return View::make('backend/models/index', compact('models'));
|
|
}
|
|
|
|
|
|
|
|
}
|