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 CreateProductsTable extends Migration {
 4: 
 5:     /**
 6:      * Run the migrations.
 7:      *
 8:      * @return void
 9:      */
10:     public function up()
11:     {
12:             if (!Schema::hasTable('products'))
13:             {
14:         Schema::create('products', function(Blueprint $table)
15:         {
16:             $table->increments('id');
17:             $table->string('name');
18:             $table->string('description')->nullable();
19:             $table->string('size')->nullable();
20:             $table->string('model')->nullable();
21:             $table->string('gallery_id')->nullable();
22:             $table->string('media_id')->nullable();
23:             $table->timestamps();
24:         });
25:             }
26:     }
27: 
28:     /**
29:      * Reverse the migrations.
30:      *
31:      * @return void
32:      */
33:     public function down()
34:     {
35:             Schema::dropIfExists('products');
36:     }
37: 
38: }
cart API documentation generated by ApiGen 2.8.0