PHP Classes
elePHPant
Icontem

File: src/views/generators/migration.blade.php

Recommend this page to a friend!
  Classes of Wedmak  >  PHP Artisan Auth Laravel 5  >  src/views/generators/migration.blade.php  >  Download  
File: src/views/generators/migration.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Artisan Auth Laravel 5
Laravel service provider to track visitors
Author: By
Last change:
Date: 10 months ago
Size: 882 bytes
 

Contents

Class file image Download
<?php echo '<?php' ?>

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

class UrlAuthSetupTables extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        // Create table for mail logs
        Schema::create('{{ $logTable }}', function (Blueprint $table) {
            $table->increments('id')->unique()->index();
            $table->string('token', 255)->index();
            $table->longText('url', 255);
            $table->integer('user_id');
            $table->integer('visits');
            $table->dateTime('lifetime');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('{{ $logTable }}');
    }
}