Skip to content
Open

9.x #14

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": "^7.3|^8.0",
"php": "^8.0.2",
"composer/installers": "~2.0"
},
"autoload": {
Expand Down
13 changes: 6 additions & 7 deletions database/migrations/2021_08_07_100001_create_blocks_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;

class CreateBlocksTable extends Migration
{
Expand All @@ -29,7 +28,7 @@ public function up()
$table->text('image')->nullable();
$table->text('images')->nullable();
$table->string('slug', 200)->nullable();
$table->enum('status', ['show','hide'])->nullable();
$table->enum('status', ['show', 'hide'])->nullable();
$table->integer('user_id')->nullable();
$table->string('user_type', 100)->nullable();
$table->string('upload_folder', 100)->nullable();
Expand All @@ -46,7 +45,7 @@ public function up()
$table->string('title', 200)->nullable();
$table->text('details')->nullable();
$table->text('image')->nullable();
$table->enum('status', ['show','hide'])->nullable();
$table->enum('status', ['show', 'hide'])->nullable();
$table->string('user_type', 100)->nullable();
$table->integer('user_id')->nullable();
$table->string('upload_folder', 100)->nullable();
Expand All @@ -56,10 +55,10 @@ public function up()
}

/*
* Reverse the migrations.
*
* @return void
*/
* Reverse the migrations.
*
* @return void
*/

public function down()
{
Expand Down
135 changes: 78 additions & 57 deletions database/seeds/BlockTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,85 +10,106 @@ class BlockTableSeeder extends Seeder
public function run()
{
DB::table('blocks')->insert([

]);

DB::table('permissions')->insert([
[
'slug' => 'block.block.view',
'name' => 'View Block',
'category_id' => '1',
'name' => 'Powered by Laravel',
'url' => '',
'icon' => 'fab fa-laravel',
'order' => '0',
'description' => 'We have tried to make use of all features of <a href="http://laravel.com" target="_balnk">Laravel</a> which help you to develop the website with all resources available online.​ ',
'image' => '',
'slug' => 'powered-by-laravel-5-5',
'status' => 'show',
'user_id' => '1',
'user_type' => 'App\\User',
'upload_folder' => '2016/07/21/104902202',
],
[
'slug' => 'block.block.create',
'name' => 'Create Block',
'category_id' => '1',
'name' => 'Configure to your project',
'url' => '',
'icon' => 'fas fa-sliders-h',
'order' => '0',
'description' => 'Lavalite helps you to <a href="https://lavalite.org/docs" target="_balnk">configure</a> your Laravel projects easily. It acts as a bootstrapper for your Laravel Content Management System.',
'image' => '',
'slug' => 'configure-to-your-project',
'status' => 'show',
'user_id' => '1',
'user_type' => 'App\\User',
'upload_folder' => '2016/07/21/104854884',
],
[
'slug' => 'block.block.edit',
'name' => 'Update Block',
'category_id' => '1',
'name' => 'Online package builder',
'url' => '',
'icon' => 'fas fa-box',
'order' => '0',
'description' => 'The online package builder helps you to build <a href="https://lavalite.org/packages" target="_balnk"> Lavalite packages</a> easily, The downloaded package with basic required files help you to finish your projects quickly.',
'image' => '',
'slug' => 'online-package-builder',
'status' => 'show',
'user_id' => '1',
'user_type' => 'App\\User',
'upload_folder' => '2016/07/21/104846403',
],
]);

DB::table('block_categories')->insert([
[
'slug' => 'block.block.delete',
'name' => 'Delete Block',
'id' => '1',
'name' => 'Features',
'slug' => 'features',
'title' => 'Packed with features you can\'t live without.',
'details' => 'Visit our <a href="https://lavalite.org/docs" target="_blank">documentation</a> for more information.',
'status' => 'show',
'user_type' => 'App\\User',
'user_id' => '1',
'upload_folder' => '2016/10/31/163917964',
'deleted_at' => null,
'created_at' => '2016-07-20 07:17:48',
'updated_at' => '2016-11-01 13:08:17',
],


]);

DB::table('menus')->insert([
'parent_id' => 1,
'key' => null,
'url' => 'admin/block/block',
'name' => 'Blocks',
'icon' => 'las la-dice',
'target' => null,
'order' => 100,
'status' => 1,
]);

DB::table('permissions')->insert([
[
'parent_id' => 1,
'key' => null,
'url' => 'admin/block/block',
'name' => 'Block',
'description' => null,
'icon' => 'fa fa-newspaper-o',
'target' => null,
'order' => 190,
'status' => 1,
'slug' => 'block.block.view',
'name' => 'View Block',
],

[
'parent_id' => 2,
'key' => null,
'url' => 'user/block/block',
'name' => 'Block',
'description' => null,
'icon' => 'icon-book-open',
'target' => null,
'order' => 190,
'status' => 1,
'slug' => 'block.block.create',
'name' => 'Create Block',
],

[
'parent_id' => 3,
'key' => null,
'url' => 'block',
'name' => 'Block',
'description' => null,
'icon' => null,
'target' => null,
'order' => 190,
'status' => 1,
'slug' => 'block.block.edit',
'name' => 'Update Block',
],
[
'slug' => 'block.block.delete',
'name' => 'Delete Block',
],

]);

DB::table('settings')->insert([
// Uncomment and edit this section for entering value to settings table.
/*
[
'pacakge' => 'Block',
'module' => 'Block',
'user_type' => null,
'user_id' => null,
'key' => 'block.block.key',
'name' => 'Some name',
'value' => 'Some value',
'type' => 'Default',
'control' => 'text',
],
*/
]);
[
'key' => 'block.block.key',
'name' => 'Some name',
'value' => 'Some value',
'type' => 'Default',
],
*/]);
}
}
113 changes: 0 additions & 113 deletions database/seeds/CategoryTableSeeder.php

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
57 changes: 0 additions & 57 deletions resources/views/public/block/aside.blade.php

This file was deleted.

Loading