Skip to content

Instantly share code, notes, and snippets.

View dpaanlka's full-sized avatar

Danielek Pałka dpaanlka

  • Chicago
View GitHub Profile
@juliobitencourt
juliobitencourt / StaticController.php
Last active June 5, 2020 16:33
A Laravel controller to serve Static pages. It translates the slug to a view file, but you might override this behavior with yout own methods
<?php
namespace App\Http\Controllers\Web;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class StaticController extends Controller