本文整理汇总了PHP中Blade::setRawTags方法的典型用法代码示例。如果您正苦于以下问题:PHP Blade::setRawTags方法的具体用法?PHP Blade::setRawTags怎么用?PHP Blade::setRawTags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Blade
的用法示例。
在下文中一共展示了Blade::setRawTags方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: register
/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->mergeConfigFrom(__DIR__ . '/../../../config/veer.php', 'veer');
\Blade::setRawTags('{{', '}}');
\Blade::setContentTags('{{{', '}}}');
\Blade::setEscapedContentTags('{{{', '}}}');
}
示例2: register
/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->app->bind('Illuminate\\Contracts\\Auth\\Registrar', 'App\\Services\\Registrar');
\Blade::setRawTags('{{', '}}');
\Blade::setContentTags('{{{', '}}}');
\Blade::setEscapedContentTags('{{{', '}}}');
}
示例3: boot
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
parent::boot();
\Blade::setRawTags("[[", "]]");
\Blade::setContentTags('<%', '%>');
// for variables and all things Blade
\Blade::setEscapedContentTags('<%%', '%%>');
// for escaped data
}
示例4: register
/**
* Register any application services.
*
* This service provider is a great spot to register your various container
* bindings with the application. As you can see, we are registering our
* "Registrar" implementation here. You can add your own bindings too!
*
* @return void
*/
public function register()
{
$this->app->bind('Illuminate\\Contracts\\Auth\\Registrar', 'Symposium\\Services\\Registrar');
$this->app->bind('form', function () {
return new \Illuminate\Html\FormBuilder($this->app->make('Illuminate\\Html\\HtmlBuilder'), $this->app->make('Illuminate\\Routing\\UrlGenerator'), csrf_token());
});
$this->app->alias('ttwitter', 'Thujohn\\Twitter\\Twitter');
\Blade::setRawTags('{{', '}}');
\Blade::setContentTags('{{{', '}}}');
\Blade::setEscapedContentTags('{{{', '}}}');
}
示例5: boot
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
parent::boot();
\Blade::setRawTags('{{', '}}');
$this->cron();
}
示例6: register
/**
* Register any application services.
*
* @return void
*/
public function register()
{
\Blade::setRawTags('{{', '}}');
\Blade::setContentTags('{{{', '}}}');
\Blade::setEscapedContentTags('{{{', '}}}');
}
示例7: function
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Blade::setRawTags('{{', '}}');
Route::get('/', 'WelcomeController@index');
Route::controllers(['auth' => 'Auth\\AuthController', 'password' => 'Auth\\PasswordController']);
Route::group(['prefix' => 'user', 'namespace' => 'User', 'middleware' => 'auth'], function () {
Route::get('/', 'UserController@index');
Route::get('home', 'UserController@index');
Route::get('info', 'UserController@getInfo');
Route::post('info', 'UserController@postInfo');
Route::get('ad/create', 'AdController@create');
Route::get('ad/waiting-list', 'AdController@getWaitingList');
Route::get('ad/passed-list', 'AdController@getPassedList');
Route::get('ad/rejected-list', 'AdController@getRejectedList');
Route::resource('ad', 'AdController');
});
Route::group(['prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => 'auth'], function () {
Route::get('/', 'AdminController@index');
Route::get('home', 'AdminController@index');
Route::get('info', 'AdminController@getInfo');
Route::get('ad/waiting-list', 'AdController@getWaitingList');