@@ -5,32 +5,32 @@ |
||
5 | 5 | |
6 | 6 | class CreateCmsPrivilegesTable extends Migration { |
7 | 7 | |
8 | - /** |
|
9 | - * Run the migrations. |
|
10 | - * |
|
11 | - * @return void |
|
12 | - */ |
|
13 | - public function up() |
|
14 | - { |
|
15 | - Schema::create('cms_roles', function(Blueprint $table) |
|
16 | - { |
|
17 | - $table->increments('id'); |
|
18 | - $table->string('name', 50)->nullable(); |
|
19 | - $table->boolean('is_superadmin')->nullable(); |
|
20 | - $table->string('theme_color', 50)->nullable(); |
|
21 | - $table->timestamps(); |
|
22 | - }); |
|
23 | - } |
|
8 | + /** |
|
9 | + * Run the migrations. |
|
10 | + * |
|
11 | + * @return void |
|
12 | + */ |
|
13 | + public function up() |
|
14 | + { |
|
15 | + Schema::create('cms_roles', function(Blueprint $table) |
|
16 | + { |
|
17 | + $table->increments('id'); |
|
18 | + $table->string('name', 50)->nullable(); |
|
19 | + $table->boolean('is_superadmin')->nullable(); |
|
20 | + $table->string('theme_color', 50)->nullable(); |
|
21 | + $table->timestamps(); |
|
22 | + }); |
|
23 | + } |
|
24 | 24 | |
25 | 25 | |
26 | - /** |
|
27 | - * Reverse the migrations. |
|
28 | - * |
|
29 | - * @return void |
|
30 | - */ |
|
31 | - public function down() |
|
32 | - { |
|
33 | - Schema::drop('cms_roles'); |
|
34 | - } |
|
26 | + /** |
|
27 | + * Reverse the migrations. |
|
28 | + * |
|
29 | + * @return void |
|
30 | + */ |
|
31 | + public function down() |
|
32 | + { |
|
33 | + Schema::drop('cms_roles'); |
|
34 | + } |
|
35 | 35 | |
36 | 36 | } |
@@ -5,36 +5,36 @@ |
||
5 | 5 | |
6 | 6 | class CreateCmsPrivilegesRolesTable extends Migration { |
7 | 7 | |
8 | - /** |
|
9 | - * Run the migrations. |
|
10 | - * |
|
11 | - * @return void |
|
12 | - */ |
|
13 | - public function up() |
|
14 | - { |
|
15 | - Schema::create('cms_roles_privileges', function(Blueprint $table) |
|
16 | - { |
|
17 | - $table->increments('id'); |
|
18 | - $table->boolean('can_see_module')->nullable(); |
|
19 | - $table->boolean('can_create')->nullable(); |
|
20 | - $table->boolean('can_read')->nullable(); |
|
21 | - $table->boolean('can_edit')->nullable(); |
|
22 | - $table->boolean('can_delete')->nullable(); |
|
23 | - $table->integer('cms_roles_id')->nullable(); |
|
24 | - $table->integer('cms_modules_id')->nullable(); |
|
25 | - $table->timestamps(); |
|
26 | - }); |
|
27 | - } |
|
8 | + /** |
|
9 | + * Run the migrations. |
|
10 | + * |
|
11 | + * @return void |
|
12 | + */ |
|
13 | + public function up() |
|
14 | + { |
|
15 | + Schema::create('cms_roles_privileges', function(Blueprint $table) |
|
16 | + { |
|
17 | + $table->increments('id'); |
|
18 | + $table->boolean('can_see_module')->nullable(); |
|
19 | + $table->boolean('can_create')->nullable(); |
|
20 | + $table->boolean('can_read')->nullable(); |
|
21 | + $table->boolean('can_edit')->nullable(); |
|
22 | + $table->boolean('can_delete')->nullable(); |
|
23 | + $table->integer('cms_roles_id')->nullable(); |
|
24 | + $table->integer('cms_modules_id')->nullable(); |
|
25 | + $table->timestamps(); |
|
26 | + }); |
|
27 | + } |
|
28 | 28 | |
29 | 29 | |
30 | - /** |
|
31 | - * Reverse the migrations. |
|
32 | - * |
|
33 | - * @return void |
|
34 | - */ |
|
35 | - public function down() |
|
36 | - { |
|
37 | - Schema::drop('cms_roles_privileges'); |
|
38 | - } |
|
30 | + /** |
|
31 | + * Reverse the migrations. |
|
32 | + * |
|
33 | + * @return void |
|
34 | + */ |
|
35 | + public function down() |
|
36 | + { |
|
37 | + Schema::drop('cms_roles_privileges'); |
|
38 | + } |
|
39 | 39 | |
40 | 40 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | app('CbDynamicMenus')->addMenu('CbMenu::dynamic_menus'); |
21 | 21 | $this->registerModule(); |
22 | 22 | |
23 | - /* $hasDashboard = \Crocodicstudio\Crudbooster\Modules\MenuModule\MenuRepo::sidebarDashboard(); |
|
23 | + /* $hasDashboard = \Crocodicstudio\Crudbooster\Modules\MenuModule\MenuRepo::sidebarDashboard(); |
|
24 | 24 | if (false && $hasDashboard) { |
25 | 25 | app('CbDynamicMenus')->addMenu('CbMenu::dashboard'); |
26 | 26 | }*/ |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * @param $name |
75 | 75 | * @return mixed |
76 | 76 | */ |
77 | - /* private function handleBase64($value, $uploads_format_candidate, $row_assign, $name) |
|
77 | + /* private function handleBase64($value, $uploads_format_candidate, $row_assign, $name) |
|
78 | 78 | { |
79 | 79 | $filedata = base64_decode($value); |
80 | 80 | $f = finfo_open(); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | class CSSBootstrap |
6 | 6 | { |
7 | 7 | |
8 | - public static function label($label,$class='warning') { |
|
9 | - return "<span class='label label-".$class."'>".$label."</span>"; |
|
10 | - } |
|
8 | + public static function label($label,$class='warning') { |
|
9 | + return "<span class='label label-".$class."'>".$label."</span>"; |
|
10 | + } |
|
11 | 11 | } |
12 | 12 | \ No newline at end of file |