SiteController.php 486 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Illuminate\Http\Request;
  4. use Cache, View;
  5. class SiteController extends Controller
  6. {
  7. public function welcome()
  8. {
  9. $res = Cache::remember('pxorg:page:welcome', now()->addHours(12), function() {
  10. return View::make('welcome')->render();
  11. });
  12. return $res;
  13. }
  14. public function join()
  15. {
  16. $res = Cache::remember('pxorg:page:join', now()->addHours(12), function() {
  17. return View::make('join.home')->render();
  18. });
  19. return $res;
  20. }
  21. }