helper.php
function set_active($path, $active = 'active') {
return call_user_func_array('Request::is', (array)$path) ? $active : '';
}master.blade.php
Example of jQuery inputmask.
<input id="test" type="text"></input>
<button id="btn">click</button>#test {
text-transform:uppercase;<div class="row">
{!! Form::open(['route' => 'some.route', 'autocomplete' => 'off', 'class' => 'col s12']) !!}
<div class="row">
<div class="input-field col s6">
{!! Form::text('username', isset($user->username) ? $user->username : '', ['id' => 'username', 'placeholder' => '']) !!}
{!! Form::label('username', 'Username') !!}
</div>
</div>This method will strip off curly brackets from the given table name
and replace the percentage character '%' with [[tablePrefix]].
let re = /{{(.*?)}}/g
let str = 'SELECT * FROM {{%user}} FROM WHERE id IN (?)'
let tablePrefix = 'tbl_'
console.log(str.replace(re, '$1').replace('%', tablePrefix))| {% if messages %} | |
| {% for message in messages %} | |
| <div class="alert {% if message.tags %} alert-{{ message.tags }}{% endif %}">{{ message|safe }}</div> | |
| {% endfor %} | |
| {% endif %} | |
| {% if form.errors %} | |
| <div class="alert alert-error"> | |
| <h4>Please fix the following errors</h4> | |
| <ul> |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |