php artisan vendor:publish, (*1)
<?php //......... use fc\ntcode\Ntcode as LLLntcode; class TestController extends BaseController { public function index(){ $aTpl = array(); $aTpl['TPL'] = array(); return View::make("test" , $aTpl ); } public function make(){ echo LLLntcode::make(); } public function check(){ echo LLLntcode::check(); exit(); } }
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>test</title> @include('ntcode::header') </head> <body> </body> </html>