29 lines
551 B
PHP
29 lines
551 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Modules;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Traits\Modules;
|
|
use Illuminate\Routing\Route;
|
|
|
|
class Home extends Controller
|
|
{
|
|
use Modules;
|
|
|
|
/**
|
|
* Display a listing of the resource.
|
|
*
|
|
* @return Response
|
|
*/
|
|
public function index()
|
|
{
|
|
$this->checkApiToken();
|
|
|
|
$paid = $this->getPaidModules();
|
|
$new = $this->getNewModules();
|
|
$free = $this->getFreeModules();
|
|
|
|
return view('modules.home.index', compact('paid', 'new', 'free'));
|
|
}
|
|
}
|