@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('sites', function (Blueprint $table) { |
|
16 | + Schema::create('sites', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('slug'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('pages', function (Blueprint $table) { |
|
16 | + Schema::table('pages', function(Blueprint $table) { |
|
17 | 17 | $table->string('page')->nullable()->default(null)->after('template_id'); |
18 | 18 | }); |
19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function down() |
27 | 27 | { |
28 | - Schema::table('pages', function (Blueprint $table) { |
|
28 | + Schema::table('pages', function(Blueprint $table) { |
|
29 | 29 | $table->dropColumn('page'); |
30 | 30 | }); |
31 | 31 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('page_blocks', function (Blueprint $table) { |
|
16 | + Schema::create('page_blocks', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('page_id'); |
19 | 19 | $table->string('name'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('users', function (Blueprint $table) { |
|
16 | + Schema::table('users', function(Blueprint $table) { |
|
17 | 17 | $table->string('token', 24)->unique()->after('remember_token'); |
18 | 18 | $table->tinyInteger('active')->default(0)->after('token'); |
19 | 19 | }); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function down() |
29 | 29 | { |
30 | - Schema::table('users', function (Blueprint $table) { |
|
30 | + Schema::table('users', function(Blueprint $table) { |
|
31 | 31 | $table->dropColumn('token'); |
32 | 32 | $table->dropColumn('active'); |
33 | 33 | }); |
@@ -15,21 +15,21 @@ discard block |
||
15 | 15 | { |
16 | 16 | $tableNames = config('permission.table_names'); |
17 | 17 | |
18 | - Schema::create($tableNames['permissions'], function (Blueprint $table) { |
|
18 | + Schema::create($tableNames['permissions'], function(Blueprint $table) { |
|
19 | 19 | $table->increments('id'); |
20 | 20 | $table->string('name'); |
21 | 21 | $table->string('guard_name'); |
22 | 22 | $table->timestamps(); |
23 | 23 | }); |
24 | 24 | |
25 | - Schema::create($tableNames['roles'], function (Blueprint $table) { |
|
25 | + Schema::create($tableNames['roles'], function(Blueprint $table) { |
|
26 | 26 | $table->increments('id'); |
27 | 27 | $table->string('name'); |
28 | 28 | $table->string('guard_name'); |
29 | 29 | $table->timestamps(); |
30 | 30 | }); |
31 | 31 | |
32 | - Schema::create($tableNames['model_has_permissions'], function (Blueprint $table) use ($tableNames) { |
|
32 | + Schema::create($tableNames['model_has_permissions'], function(Blueprint $table) use ($tableNames) { |
|
33 | 33 | $table->unsignedInteger('permission_id'); |
34 | 34 | $table->morphs('model'); |
35 | 35 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $table->primary(['permission_id', 'model_id', 'model_type']); |
42 | 42 | }); |
43 | 43 | |
44 | - Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames) { |
|
44 | + Schema::create($tableNames['model_has_roles'], function(Blueprint $table) use ($tableNames) { |
|
45 | 45 | $table->unsignedInteger('role_id'); |
46 | 46 | $table->morphs('model'); |
47 | 47 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $table->primary(['role_id', 'model_id', 'model_type']); |
54 | 54 | }); |
55 | 55 | |
56 | - Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) { |
|
56 | + Schema::create($tableNames['role_has_permissions'], function(Blueprint $table) use ($tableNames) { |
|
57 | 57 | $table->unsignedInteger('permission_id'); |
58 | 58 | $table->unsignedInteger('role_id'); |
59 | 59 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('modules', function (Blueprint $table) { |
|
16 | + Schema::create('modules', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('slug'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('repeaters', function (Blueprint $table) { |
|
16 | + Schema::table('repeaters', function(Blueprint $table) { |
|
17 | 17 | $table->string('url')->nullable()->default(null)->after('slug'); |
18 | 18 | $table->string('page')->nullable()->default('default')->after('url'); |
19 | 19 | }); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function down() |
29 | 29 | { |
30 | - Schema::table('repeaters', function (Blueprint $table) { |
|
30 | + Schema::table('repeaters', function(Blueprint $table) { |
|
31 | 31 | $table->dropColumn('url'); |
32 | 32 | $table->dropColumn('page'); |
33 | 33 | }); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('repeaters', function (Blueprint $table) { |
|
16 | + Schema::create('repeaters', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('slug'); |
19 | 19 | $table->longText('json'); |
@@ -29,11 +29,11 @@ discard block |
||
29 | 29 | // parameter represents the DataTables column identifier. In this case simple |
30 | 30 | // indexes |
31 | 31 | $columns = array( |
32 | - array( 'db' => 'id', 'dt' => 0 ), |
|
33 | - array( 'db' => 'firstname', 'dt' => 1 ), |
|
34 | - array( 'db' => 'surname', 'dt' => 2 ), |
|
35 | - array( 'db' => 'zip', 'dt' => 3 ), |
|
36 | - array( 'db' => 'country', 'dt' => 4 ) |
|
32 | + array('db' => 'id', 'dt' => 0), |
|
33 | + array('db' => 'firstname', 'dt' => 1), |
|
34 | + array('db' => 'surname', 'dt' => 2), |
|
35 | + array('db' => 'zip', 'dt' => 3), |
|
36 | + array('db' => 'country', 'dt' => 4) |
|
37 | 37 | ); |
38 | 38 | |
39 | 39 | // SQL server connection information |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | * server-side, there is no need to edit below this line. |
51 | 51 | */ |
52 | 52 | |
53 | -require( '../../../../examples/server_side/scripts/ssp.class.php' ); |
|
53 | +require('../../../../examples/server_side/scripts/ssp.class.php'); |
|
54 | 54 | |
55 | 55 | echo json_encode( |
56 | - SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns ) |
|
56 | + SSP::simple($_GET, $sql_details, $table, $primaryKey, $columns) |
|
57 | 57 | ); |
58 | 58 |