v1.5.24bb Added comments
This commit is contained in:
@@ -7,14 +7,32 @@ use Illuminate\Http\Response;
|
||||
|
||||
class AboutController extends Controller
|
||||
{
|
||||
|
||||
//Check authentication and languages settings
|
||||
public function __construct()
|
||||
{
|
||||
//The middleware is being run just before the pages is getting loaded
|
||||
$this->middleware(["auth"]);
|
||||
$this->middleware(["lang"]);
|
||||
}
|
||||
|
||||
/*
|
||||
Index controller, all backend work for the about index
|
||||
pages is done here.
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
/*
|
||||
Response::detect is a library that we use to
|
||||
detect if you are on mobile or desktop.
|
||||
If you are on mobile it sends you to the
|
||||
/resources/views/app/about/index
|
||||
and if you are on desktop it sends you to
|
||||
/resources/views/admin/about/index (There is no "about" on desktop view).
|
||||
|
||||
Normally the index pages only contain the return of the index pages
|
||||
but you are allowed to modify the index function to how may like.
|
||||
*/
|
||||
return Response::detect("about.index");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user