Verified Commit f0e687ea authored by Tim Vis茅e's avatar Tim Vis茅e
Browse files

Serve actual raw LICENSE file when viewing raw license

parent 7198c019
......@@ -72,9 +72,8 @@ class PagesController extends Controller {
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function licenseRaw() {
$response = \Response::make(\View::make('pages.includes.raw.license'), 200);
$response->header('Content-Type', 'text/plain');
return $response;
return response()
->file('LICENSE', ['Content-Type' => 'text/plain']);
}
/**
......
This diff is collapsed.
......@@ -86,3 +86,9 @@ mix.copy(
'node_modules/semantic-ui-css/semantic.min.js',
'public/js/semantic.min.js',
);
// Other static resources
mix.copy(
'../LICENSE',
'public/LICENSE',
);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment