for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanesoft\Blog\Http\Controllers\Foundation;
use Arcanesoft\Blog\Bases\FoundationController;
/**
* Class PostsController
*
* @package Arcanesoft\Blog\Http\Controllers\Foundation
* @author ARCANEDEV <[email protected]>
*/
class PostsController extends FoundationController
{
/* ------------------------------------------------------------------------------------------------
| Constructor
| ------------------------------------------------------------------------------------------------
* Instantiate the controller.
public function __construct()
parent::__construct();
$this->setCurrentPage('blog-posts');
$this->addBreadcrumbRoute('Posts', 'blog::foundation.posts.index');
}
| Main Functions
public function index()
$this->authorize('blog.posts.list');
$title = 'Blog - Posts';
$this->setTitle($title);
$this->addBreadcrumb('List all posts');
return $this->view('foundation.posts.list');