Adding FormAccessible Trait
Signed-off-by: Adam Engebretson <adam.engebretson@bridgeconx.com>
This commit is contained in:
1 parent
e70854b523
commit
5b7668573d
5 files changed
+225
No files matched your search
+25
@@ -1,5 +1,9 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Capsule\Manager as Capsule;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Events\Dispatcher;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register The Composer Auto Loader
|
||||
@@ -26,3 +30,24 @@ require __DIR__.'/vendor/autoload.php';
|
||||
*/
|
||||
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
/*
|
||||
* Prepare the db connection (spoofing that shit)
|
||||
*/
|
||||
$capsule = new Capsule;
|
||||
$capsule->addConnection([
|
||||
'driver' => 'sqlite',
|
||||
'database' => ':memory:',
|
||||
]);
|
||||
$capsule->setEventDispatcher(new Dispatcher);
|
||||
$capsule->setAsGlobal();
|
||||
$capsule->bootEloquent();
|
||||
|
||||
$capsule->schema()->dropIfExists('models');
|
||||
|
||||
$capsule->schema()->create('models', function(Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('string');
|
||||
$table->string('email');
|
||||
$table->timestamps();
|
||||
});
|
||||
Reference in new issue
Block a user