PHP Classes

File: database/User.php

Recommend this page to a friend!
  Packages of Luis Toscano   Easy API   database/User.php   Download  
File: database/User.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Easy API
Handle API calls by mapping requests to functions
Author: By
Last change:
Date: 9 months ago
Size: 453 bytes
 

Contents

Class file image Download
<?php
require "libs/eloquent.php";

use
Illuminate\Database\Capsule\Manager as Capsule;

Capsule::schema()->create('users', function ($table) {
      
$table->increments('id');
      
$table->string('name');
      
$table->string('email')->unique();
      
$table->string('password');
      
$table->string('userimage')->nullable();
      
$table->string('api_key')->nullable()->unique();
      
$table->rememberToken();
      
$table->timestamps();
});