composer require yajra/laravel-datatables-oracle:~6.0
Open up config/app.php
and add the following in providers
key:
Yajra\Datatables\DatatablesServiceProvider::class,
CREATE proc [dbo].[sp_MSforeachtable] | |
@command1 nvarchar(2000), @replacechar nchar(1) = N'?', @command2 nvarchar(2000) = null, | |
@command3 nvarchar(2000) = null, @whereand nvarchar(2000) = null, | |
@precommand nvarchar(2000) = null, @postcommand nvarchar(2000) = null | |
AS | |
declare @mscat nvarchar(12) | |
select @mscat = ltrim(str(convert(int, 0x0002))) | |
if (@precommand is not null) | |
exec(@precommand) |
<?php | |
use Illuminate\Database\Eloquent\Builder; | |
if (! function_exists('dumpSql')) { | |
function dumpSql(Builder $builder) | |
{ | |
return array_reduce($builder->getBindings(), function ($sql, $binding) { | |
return preg_replace('/\?/', is_numeric($binding) ? $binding : "'".$binding."'", $sql, 1); |
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Support\Facades\Schema; | |
class CreateUsersTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
<div class="form-group row"> | |
<label for="{{ snake_case($label) }}" | |
class="{{ $label_class ?? 'col col-form-label' }}"> | |
{{ __($label) }} | |
</label> | |
<div class="{{ $input_container_class ?? 'col' }}"> | |
<input | |
@isset($readonly) | |
readonly="true" |
<?php | |
ini_set('memory_limit','1024M'); | |
$finder = PhpCsFixer\Finder::create() | |
->notPath('bootstrap/cache') | |
->notPath('storage') | |
->notPath('vendor') | |
->notPath('node_modules') | |
->notPath('nova') | |
->in(__DIR__) | |
->name('*.php') |
phpenv local 7.0 | |
echo "memory_limit = 512M" >> /home/rof/.phpenv/versions/$(phpenv version-name)/etc/php.ini | |
# install dependencies | |
COMPOSER_HOME=${HOME}/cache/composer | |
composer install --prefer-dist --no-interaction | |
# set up environment variables | |
touch .env | |
echo "APP_ENV=testing" >> .env | |
echo "APP_DEBUG=true" >> .env | |
echo "APP_KEY=base64:sQPFP80eWJQGo0SDPc+M2Tib+GLUocRYRw4RLsfM27I=" >> .env |
<?php | |
use Illuminate\Database\Eloquent\Builder; | |
if (! function_exists('dumpSql')) { | |
function dumpSql(Builder $builder) | |
{ | |
return array_reduce($builder->getBindings(), function ($sql, $binding) { | |
return preg_replace('/\?/', is_numeric($binding) ? $binding : "'".$binding."'", $sql, 1); | |
}, $builder->toSql()); |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Theme; | |
class ThemeLoader | |
{ | |
/** |
/* | |
Exemples : | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}"> | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?"> | |
*/ | |
(function() { | |