Overview

Namespaces

  • Composer
    • Autoload
  • Illuminate
    • Support
      • Contracts
      • Facades
  • Laravella
    • Cart
      • Facades
  • None
  • PHP

Classes

  • CartController
  • ComposerAutoloaderInit9c0b006a4274a87b7a6105d88b65eda5
  • CreateContactsTable
  • CreateContactTypesTable
  • CreateProductCategoriesTable
  • CreateProductsTable
  • DatabaseSeeder
  • DbController
  • Generic
  • ProductsSeeder

Functions

  • action
  • app
  • app_path
  • array_add
  • array_build
  • array_divide
  • array_dot
  • array_except
  • array_fetch
  • array_first
  • array_flatten
  • array_forget
  • array_get
  • array_only
  • array_pluck
  • array_pull
  • array_set
  • array_sort
  • asset
  • base_path
  • camel_case
  • class_basename
  • csrf_token
  • dd
  • e
  • ends_with
  • head
  • last
  • link_to
  • link_to_action
  • link_to_asset
  • link_to_route
  • object_get
  • public_path
  • route
  • secure_asset
  • secure_url
  • snake_case
  • starts_with
  • storage_path
  • str_contains
  • str_finish
  • str_is
  • str_plural
  • str_random
  • str_singular
  • studly_case
  • trans
  • trans_choice
  • url
  • value
  • with
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php use Illuminate\Database\Schema\Blueprint;
 2: use Illuminate\Database\Migrations\Migration;
 3: class CreateContactsTable extends Migration {
 4: 
 5:     /**
 6:      * Run the migrations.
 7:      *
 8:      * @return void
 9:      */
10:     public function up()
11:     {
12:             if (!Schema::hasTable('contacts'))
13:             {
14:         Schema::create('contacts', function(Blueprint $table)
15:         {
16:             $table->increments('id');
17:             $table->integer('user_id')->unsigned()->nullable();
18:             $table->integer('first_name')->unsigned()->nullable();
19:             $table->integer('last_name')->unsigned()->nullable();
20:             $table->integer('email_address')->unsigned()->nullable();
21:             $table->integer('address01')->unsigned()->nullable();
22:             $table->integer('address02')->unsigned()->nullable();
23:             $table->integer('address03')->unsigned()->nullable();
24:             $table->integer('address04')->unsigned()->nullable();
25:             $table->integer('postal_code')->unsigned()->nullable();
26:             $table->timestamps();
27:         });
28:             }
29:     }
30: 
31:     /**
32:      * Reverse the migrations.
33:      *
34:      * @return void
35:      */
36:     public function down()
37:     {
38:             Schema::dropIfExists('contacts');
39:     }
40: 
41: }
cart API documentation generated by ApiGen 2.8.0