mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
dark mode update
This commit is contained in:
34
database/migrations/2020_07_08_080255_create_pages_table.php
Normal file
34
database/migrations/2020_07_08_080255_create_pages_table.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePagesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('pages', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->boolean('visibility');
|
||||
$table->string('title');
|
||||
$table->string('slug');
|
||||
$table->longText('content');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('pages');
|
||||
}
|
||||
}
|
||||
@@ -11,9 +11,7 @@ class DatabaseSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$this->call(PaymentGatewaysSeeder::class);
|
||||
$this->call(PlansSeeder::class);
|
||||
$this->call(InvoicesSeeder::class);
|
||||
$this->call(PageSeeder::class);
|
||||
$this->call(SettingSeeder::class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class InvoicesSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$user = \App\User::find(1);
|
||||
$seller = [
|
||||
'settings' => [
|
||||
'billing_name' => 'VueFileManager',
|
||||
'billing_address' => 'Somewhere 32',
|
||||
'billing_state' => 'Washington',
|
||||
'billing_city' => 'Manchester',
|
||||
'billing_postal_code' => '04001',
|
||||
'billing_country' => 'The USA',
|
||||
'billing_phone_number' => '490321-6354774',
|
||||
'billing_vat_number' => '7354724626246',
|
||||
]
|
||||
];
|
||||
|
||||
$invoice = \App\Invoice::create([
|
||||
'token' => \Illuminate\Support\Str::random(),
|
||||
'order' => '200001',
|
||||
'user_id' => 1,
|
||||
'plan_id' => 1,
|
||||
'seller' => [
|
||||
'billing_name' => $seller['settings']['billing_name'],
|
||||
'billing_address' => $seller['settings']['billing_address'],
|
||||
'billing_state' => $seller['settings']['billing_state'],
|
||||
'billing_city' => $seller['settings']['billing_city'],
|
||||
'billing_postal_code' => $seller['settings']['billing_postal_code'],
|
||||
'billing_country' => $seller['settings']['billing_country'],
|
||||
'billing_phone_number' => $seller['settings']['billing_phone_number'],
|
||||
'billing_vat_number' => $seller['settings']['billing_vat_number'],
|
||||
],
|
||||
'client' => [
|
||||
'billing_name' => $user->settings->billing_name,
|
||||
'billing_address' => $user->settings->billing_address,
|
||||
'billing_state' => $user->settings->billing_state,
|
||||
'billing_city' => $user->settings->billing_city,
|
||||
'billing_postal_code' => $user->settings->billing_postal_code,
|
||||
'billing_country' => $user->settings->billing_country,
|
||||
'billing_phone_number' => $user->settings->billing_phone_number,
|
||||
],
|
||||
'bag' => [
|
||||
[
|
||||
'description' => 'Subscription - Starter Pack',
|
||||
'date' => '01-05-2020 01-06-2020',
|
||||
'amount' => 2.99,
|
||||
]
|
||||
],
|
||||
'notes' => '',
|
||||
'total' => 2.99,
|
||||
'currency' => 'USD',
|
||||
'path' => '/invoices/200001-8HUrJkNdLKilNMeF.pdf',
|
||||
]);
|
||||
}
|
||||
}
|
||||
40
database/seeds/PageSeeder.php
Normal file
40
database/seeds/PageSeeder.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
use App\Page;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PageSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$columns = collect([
|
||||
[
|
||||
'visibility' => 1,
|
||||
'title' => 'Terms of Service',
|
||||
'slug' => 'terms-of-service',
|
||||
'content' => 'Laoreet cum hendrerit iaculis arcu phasellus congue et elementum, pharetra risus imperdiet aptent posuere rutrum parturient blandit, dapibus tellus ridiculus potenti aliquam sociis turpis. Nullam commodo eget laoreet risus cursus vel placerat, in dapibus sociis gravida faucibus sodales, fringilla potenti elit semper iaculis ullamcorper. Dignissim vulputate pretium montes pellentesque mollis, consectetur adipiscing curabitur semper sem rhoncus, litora viverra curae proin.',
|
||||
],
|
||||
[
|
||||
'visibility' => 1,
|
||||
'title' => 'Privacy Policy',
|
||||
'slug' => 'privacy-policy',
|
||||
'content' => 'Sit orci justo augue maecenas laoreet consectetur natoque magnis in viverra sagittis, himenaeos urna facilisis mus proin primis diam accumsan tristique inceptos. Primis quisque posuere sit praesent lobortis feugiat semper convallis facilisis, vivamus gravida ligula nostra curae eu donec duis parturient senectus, arcu dolor viverra penatibus natoque cum nisi commodo. Litora sociis mauris justo nullam suspendisse mattis maecenas nascetur congue phasellus cras ultricies posuere donec, dapibus egestas diam lacus ornare montes senectus tincidunt eu taciti sed consequat.',
|
||||
],
|
||||
[
|
||||
'visibility' => 1,
|
||||
'title' => 'Cookie Policy',
|
||||
'slug' => 'cookie-policy',
|
||||
'content' => 'Metus penatibus ligula dolor natoque non habitasse laoreet facilisis, libero vivamus eget semper vulputate interdum integer, phasellus lorem enim blandit consectetur nullam sollicitudin. Hendrerit interdum luctus ut in molestie himenaeos eros cum laoreet parturient est, eu lectus hac et netus viverra dictumst congue elit sem senectus litora, fames scelerisque adipiscing inceptos fringilla montes sociosqu suscipit auctor potenti. Elementum lacus vulputate viverra ac morbi ligula ipsum facilisi, sit eu imperdiet lacinia congue dis vitae.',
|
||||
],
|
||||
]);
|
||||
|
||||
$columns->each(function ($page) {
|
||||
Page::create($page);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PlansSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
DB::table('Plans')->insert([
|
||||
'name' => 'Starter Pack',
|
||||
'description' => 'Faucibus massa amet fermentum sodales natoque mauris',
|
||||
'price' => '9.90',
|
||||
'capacity' => '200',
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
]);
|
||||
|
||||
DB::table('Plans')->insert([
|
||||
'name' => 'Professional Pack',
|
||||
'description' => 'Fusce morbi a massa ullamcorper inceptos fermentum',
|
||||
'price' => '19.90',
|
||||
'capacity' => '500',
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
]);
|
||||
|
||||
DB::table('Plans')->insert([
|
||||
'name' => 'Business Pack',
|
||||
'description' => 'Taciti metus proin sociis aenean facilisis eu',
|
||||
'price' => '44.90',
|
||||
'capacity' => '1000',
|
||||
'created_at' => Carbon::now(),
|
||||
'updated_at' => Carbon::now(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -11,40 +11,8 @@ class SettingSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$columns = collect([
|
||||
/* $columns = collect([
|
||||
|
||||
// Service Billing Info
|
||||
['name' => 'billing_phone_number'],
|
||||
['name' => 'billing_postal_code'],
|
||||
['name' => 'billing_vat_number'],
|
||||
['name' => 'billing_address'],
|
||||
['name' => 'billing_country'],
|
||||
['name' => 'billing_state'],
|
||||
['name' => 'billing_city'],
|
||||
['name' => 'billing_name'],
|
||||
|
||||
// General Settings
|
||||
['name' => 'app_title'],
|
||||
['name' => 'app_description'],
|
||||
|
||||
['name' => 'app_logo'],
|
||||
['name' => 'app_favicon'],
|
||||
|
||||
['name' => 'google_analytics'],
|
||||
['name' => 'contact_email'],
|
||||
|
||||
// Users
|
||||
['name' => 'registration', 'value' => 1],
|
||||
['name' => 'storage_limitation', 'value' => 1],
|
||||
['name' => 'storage_default', 'value' => 1],
|
||||
|
||||
// Mail settings
|
||||
['name' => 'mail_driver'],
|
||||
['name' => 'mail_host'],
|
||||
['name' => 'mail_port'],
|
||||
['name' => 'mail_username'],
|
||||
['name' => 'mail_password'],
|
||||
['name' => 'mail_encryption'],
|
||||
]);
|
||||
|
||||
$columns->each(function ($col) {
|
||||
@@ -52,6 +20,6 @@ class SettingSeeder extends Seeder
|
||||
'name' => $col['name'],
|
||||
'value' => isset($col['value']) ? $col['value'] : null,
|
||||
]);
|
||||
});
|
||||
});*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user