Skip to content

Commit

Permalink
Install dependencies in linux and move permanently on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
tarikmanoar committed Dec 27, 2019
1 parent 756ca0d commit 76ebc08
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 41 deletions.
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AppServiceProvider extends ServiceProvider
*/
public function register()
{
Schema::defaultStringLength(255);
Schema::defaultStringLength(191);
}

/**
Expand Down
15 changes: 8 additions & 7 deletions database/factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use App\User;
use Faker\Generator as Faker;
use Illuminate\Database\Eloquent\Factory;
use Illuminate\Support\Carbon;
use Illuminate\Support\Str;

/*
Expand Down Expand Up @@ -37,11 +38,11 @@
'user_id' => User::all()->random()->id,
'address' => $faker->address,
'gender' => $faker->randomElement(['Male', 'Female']),
'dob' => $faker->date('Y-m-d'),
'dob' => Carbon::parse($faker->dateTimeBetween('-25 years', '-15 years'))->format('Y-m-d'),
'experience' => 'Good',
'phone_number' => $faker->unique()->phoneNumber,
'bio' => $faker->sentence(3),
'cover_latter' => $faker->sentence(3),
'bio' => $faker->realText(80),
'cover_latter' => $faker->realText(80),
'resume' => 'Eel4a.pdf',
'avatar' => $faker->randomElement(['bag.png', 'man.jpg']),
];
Expand All @@ -66,7 +67,7 @@
'"We Power Transactions That Drive Commerce"',
'"It Does Exactly What It Says on the Tin."'
]),
'description' => $faker->paragraph(rand(2, 20))
'description' => $faker->realText(200,5)
];
});

Expand All @@ -75,11 +76,11 @@
'user_id' => User::all()->random()->id,
'company_id' => Company::all()->random()->id,
'category_id' => Category::all()->random()->id,
'title' => $name = $faker->text,
'title' => $name = $faker->realText(55),
'slug' => Str::slug($name),
'description' => $faker->paragraph(rand(2, 20)),
'description' => $faker->realText(200,5),
'position' => $faker->jobTitle,
'roles' => $faker->text,
'roles' => $faker->realText,
'address' => $faker->address,
'job_type' => $faker->randomElement(['Full Time', 'Part Time', 'Casual']),
'status' => rand(0, 1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AddPhoneNumberToProfilesTable extends Migration
public function up()
{
Schema::table('profiles', function (Blueprint $table) {
$table->string('phone_number',255)->unique()->nullable()->after('address');
$table->string('phone_number')->unique()->nullable()->after('address');
});
}

Expand Down
64 changes: 32 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 76ebc08

Please sign in to comment.