Commit e1b1dfd3 by Angello Torres

Add archivo - configuracion_vhost.txt -

parent 410c0873
En C:\Windows\System32\drivers\etc
Modificar archivo host
Añadir
127.0.0.1 pruebalaravel.pr
En C:\Bitnami\wampstack-7.4.10-0\apache2\conf
Modificar el archivo httpd.conf
Quitar # a
LoadModule vhost_alias_module modules/mod_vhost_alias.so
Include conf/extra/httpd-vhosts.conf
En C:\Bitnami\wampstack-7.4.10-0\apache2\conf\extra
Modificar el archivo httpd-vhosts.conf
Añadir
<VirtualHost *:80>
ServerAdmin webmaster@pruebalaravel.pr
DocumentRoot "C:/Users/lperez/Documents/git-testing/prueba/public" // Poner la ruta correspondiente
ServerName pruebalaravel.pr
<Directory "C:/Users/lperez/Documents/git-testing/prueba/public"> // Poner la ruta correspondiente
Options -Indexes +FollowSymLinks -MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog "logs/pruebalaravel.pr-error.log"
CustomLog "logs/pruebalaravel.pr-access.log" common
</VirtualHost>
IMPORTANTE
http://localhost/phpmyadmin
......@@ -87,6 +87,7 @@
<path value="$PROJECT_DIR$/vendor/psr/container" />
<path value="$PROJECT_DIR$/vendor/psr/log" />
<path value="$PROJECT_DIR$/vendor/webmozart/assert" />
<path value="$PROJECT_DIR$/vendor/symfony/http-client-contracts" />
</include_path>
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="7.1" />
......
......@@ -70,6 +70,7 @@
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/event-dispatcher" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/event-dispatcher-contracts" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/finder" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-client-contracts" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-foundation" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-kernel" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/mime" />
......
......@@ -126,6 +126,7 @@
<path value="$PROJECT_DIR$/vendor/psr/container" />
<path value="$PROJECT_DIR$/vendor/psr/log" />
<path value="$PROJECT_DIR$/vendor/webmozart/assert" />
<path value="$PROJECT_DIR$/vendor/symfony/http-client-contracts" />
</include_path>
</component>
<component name="ProjectId" id="1i05x3qJtShOTxZAlezA7c6noWc" />
......@@ -158,6 +159,7 @@
<workItem from="1601031913325" duration="5752000" />
<workItem from="1601043097024" duration="816000" />
<workItem from="1601043914288" duration="3058000" />
<workItem from="1601301111256" duration="2983000" />
</task>
<servers />
</component>
......
......@@ -3,9 +3,10 @@
"",
"\\app",
"\\database",
"\\database\\factories",
"\\database\\seeds",
"\\public"
],
"SelectedNode": "\\.env.example",
"SelectedNode": "\\app\\User.php",
"PreviewInSolutionExplorer": false
}
\ No newline at end of file
No preview for this file type
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class skill extends Model
{
//
}
......@@ -4454,28 +4454,28 @@
},
{
"name": "phpspec/prophecy",
"version": "1.11.1",
"version": "1.12.0",
"source": {
"type": "git",
"url": "https://github.com/phpspec/prophecy.git",
"reference": "b20034be5efcdab4fb60ca3a29cba2949aead160"
"reference": "765cd5d5d237525f8bbadaec5dc161c83a369119"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/b20034be5efcdab4fb60ca3a29cba2949aead160",
"reference": "b20034be5efcdab4fb60ca3a29cba2949aead160",
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/765cd5d5d237525f8bbadaec5dc161c83a369119",
"reference": "765cd5d5d237525f8bbadaec5dc161c83a369119",
"shasum": ""
},
"require": {
"doctrine/instantiator": "^1.2",
"php": "^7.2",
"phpdocumentor/reflection-docblock": "^5.0",
"php": "^7.2 || ~8.0, <8.1",
"phpdocumentor/reflection-docblock": "^5.2",
"sebastian/comparator": "^3.0 || ^4.0",
"sebastian/recursion-context": "^3.0 || ^4.0"
},
"require-dev": {
"phpspec/phpspec": "^6.0",
"phpunit/phpunit": "^8.0"
"phpunit/phpunit": "^8.0 || ^9.0 <9.3"
},
"type": "library",
"extra": {
......@@ -4513,7 +4513,7 @@
"spy",
"stub"
],
"time": "2020-07-08T12:44:21+00:00"
"time": "2020-09-28T12:23:07+00:00"
},
{
"name": "phpunit/php-code-coverage",
......
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
// use App\Model;
use App\Profession;
use Faker\Generator as Faker;
$factory->define(Profession::class, function (Faker $faker) {
return [
'title' => $faker->sentence(3),
];
});
/*use Faker\Generator as Faker;
$factory->define(App\Profession::class, function (Faker $faker) {
return [
//
];
});*/
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\skill;
use Faker\Generator as Faker;
$factory->define(skill::class, function (Faker $faker) {
return [
//
];
});
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use Faker\Generator as Faker;
$factory->define(App\User::class, function (Faker $faker){
static $password;
return [
'name' => $faker->name,
'email' =>$faker->unique()->safeEmail,
'password' => $password ?: $password = bcrypt('secret'),
'remember_token' => Str::random(10),
];
});
/*
use App\User;
use Illuminate\Support\Str;
use Faker\Generator as Faker;
*/
/*
|--------------------------------------------------------------------------
| Model Factories
......@@ -15,13 +36,15 @@ use Faker\Generator as Faker;
| model instances for testing / seeding your application's database.
|
*/
$factory->define(User::class, function (Faker $faker) {
/*
$factory->define(App\User::class, function (Faker $faker) {
return [
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
// 'password' => $password = bcrypt('secret'),
'remember_token' => Str::random(10),
];
});
});*/
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSkillsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('skills', function (Blueprint $table) {
$table->bigIncrements('id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('skills');
}
}
......@@ -50,5 +50,7 @@ class ProfessionalSeeder extends Seeder
Profession::create([
'title' => 'Diseñador Web',
]);
factory(Profession::class)->times(17)->create();
}
}
......@@ -67,5 +67,13 @@ class UserSeeder extends Seeder
'password' => bcrypt('q1w2e3'),
'profession_id' => null,
]);
// Sobreescribiendo una propiedad, en este caso profession_id
factory(User::class)->create([
'profession_id' => $professionId
]);
// Creación de Usuarios aleatorios con la función factory()
factory(User::class, 48)->create();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment