@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -Route::group(['middleware' => ['web', 'admin']], function () { |
|
| 3 | +Route::group(['middleware' => ['web', 'admin']], function() { |
|
| 4 | 4 | Route::get('/manager/add', 'Larafolio\Http\Controllers\ProjectController@create')->name('add-project'); |
| 5 | 5 | |
| 6 | 6 | Route::get('/manager', 'Larafolio\Http\Controllers\DashboardController@index')->name('dashboard'); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | factory(Project::class) |
| 23 | 23 | ->create(['name' => $name]) |
| 24 | - ->each(function ($project) { |
|
| 24 | + ->each(function($project) { |
|
| 25 | 25 | $project->blocks()->save(factory(TextBlock::class)->make()); |
| 26 | 26 | |
| 27 | 27 | $project->links()->save(factory(Link::class)->make()); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('password_resets', function (Blueprint $table) { |
|
| 16 | + Schema::create('password_resets', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('email')->index(); |
| 18 | 18 | $table->string('token')->index(); |
| 19 | 19 | $table->timestamp('created_at')->nullable(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('text_blocks', function (Blueprint $table) { |
|
| 16 | + Schema::create('text_blocks', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name')->index(); |
| 19 | 19 | $table->text('text'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('links', function (Blueprint $table) { |
|
| 16 | + Schema::create('links', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name')->nullable()->index(); |
| 19 | 19 | $table->string('url')->nullable(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('images', function (Blueprint $table) { |
|
| 16 | + Schema::create('images', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('path')->unique(); |
| 19 | 19 | $table->string('name')->nullable()->index(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('projects', function (Blueprint $table) { |
|
| 16 | + Schema::create('projects', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name')->unique()->index(); |
| 19 | 19 | $table->string('slug')->unique()->index(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('users', function (Blueprint $table) { |
|
| 16 | + Schema::create('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('email')->unique(); |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** @var \Illuminate\Database\Eloquent\Factory $factory */ |
| 4 | -$factory->define(App\User::class, function (Faker\Generator $faker) { |
|
| 4 | +$factory->define(App\User::class, function(Faker\Generator $faker) { |
|
| 5 | 5 | static $password; |
| 6 | 6 | |
| 7 | 7 | return [ |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | ]; |
| 13 | 13 | }); |
| 14 | 14 | |
| 15 | -$factory->define(Larafolio\Models\Project::class, function (Faker\Generator $faker) { |
|
| 15 | +$factory->define(Larafolio\Models\Project::class, function(Faker\Generator $faker) { |
|
| 16 | 16 | $name = str_random(30); |
| 17 | 17 | |
| 18 | 18 | $types = ['web', 'github', 'volunteer']; |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | ]; |
| 28 | 28 | }); |
| 29 | 29 | |
| 30 | -$factory->define(Larafolio\Models\Image::class, function (Faker\Generator $faker) { |
|
| 30 | +$factory->define(Larafolio\Models\Image::class, function(Faker\Generator $faker) { |
|
| 31 | 31 | $project = factory(Larafolio\Models\Project::class)->create(); |
| 32 | 32 | |
| 33 | 33 | return [ |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | ]; |
| 38 | 38 | }); |
| 39 | 39 | |
| 40 | -$factory->define(Larafolio\Models\TextBlock::class, function (Faker\Generator $faker) { |
|
| 40 | +$factory->define(Larafolio\Models\TextBlock::class, function(Faker\Generator $faker) { |
|
| 41 | 41 | $text = $faker->paragraph(5, true); |
| 42 | 42 | |
| 43 | 43 | return [ |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | ]; |
| 49 | 49 | }); |
| 50 | 50 | |
| 51 | -$factory->define(Larafolio\Models\Link::class, function (Faker\Generator $faker) { |
|
| 51 | +$factory->define(Larafolio\Models\Link::class, function(Faker\Generator $faker) { |
|
| 52 | 52 | return [ |
| 53 | 53 | 'name' => $faker->word, |
| 54 | 54 | 'text' => $faker->sentence, |