@@ -14,6 +14,7 @@ |
||
| 14 | 14 | /** |
| 15 | 15 | * Create a new event instance. |
| 16 | 16 | * |
| 17 | + * @param \Illuminate\Http\Request $para |
|
| 17 | 18 | * @return void |
| 18 | 19 | */ |
| 19 | 20 | public function __construct($para) |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | CanResetPassword; |
| 18 | 18 | |
| 19 | 19 | // use Billable; |
| 20 | - // use CustomerBillableTrait; |
|
| 20 | + // use CustomerBillableTrait; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * The database table used by the model. |
@@ -101,11 +101,11 @@ |
||
| 101 | 101 | return $this->hasMany('App\Model\Order\Payment'); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - public function bussiness(){ |
|
| 104 | + public function bussiness() { |
|
| 105 | 105 | $short = $this->attributes['bussiness']; |
| 106 | 106 | $name = "--"; |
| 107 | - $bussiness = \App\Model\Common\Bussiness::where('short',$short)->first(); |
|
| 108 | - if($bussiness){ |
|
| 107 | + $bussiness = \App\Model\Common\Bussiness::where('short', $short)->first(); |
|
| 108 | + if ($bussiness) { |
|
| 109 | 109 | $name = $bussiness->name; |
| 110 | 110 | } |
| 111 | 111 | return $name; |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('templates', function (Blueprint $table) { |
|
| 15 | + Schema::create('templates', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->integer('type')->unsigned(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('jobs', function (Blueprint $table) { |
|
| 15 | + Schema::create('jobs', function(Blueprint $table) { |
|
| 16 | 16 | $table->bigIncrements('id'); |
| 17 | 17 | $table->string('queue'); |
| 18 | 18 | $table->longText('payload'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('frontend_pages', function (Blueprint $table) { |
|
| 15 | + Schema::create('frontend_pages', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('parent_page_id'); |
| 18 | 18 | $table->string('slug'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('template_types', function (Blueprint $table) { |
|
| 15 | + Schema::create('template_types', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->timestamps(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('product_bundle_relations', function (Blueprint $table) { |
|
| 15 | + Schema::create('product_bundle_relations', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('product_id')->unsigned(); |
| 18 | 18 | $table->foreign('product_id')->references('id')->on('products'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('group_features', function (Blueprint $table) { |
|
| 15 | + Schema::create('group_features', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('group_id')->unsigned(); |
| 18 | 18 | $table->foreign('group_id')->references('id')->on('product_groups'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('widgets', function (Blueprint $table) { |
|
| 15 | + Schema::create('widgets', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->string('type'); |