Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Run
git clone https://github.com/phpdevsolutions/blog.git
Install dependencies
composer install
If there are errors update
composer update
and
npm install
Create a database and create the .env file by copying the .env.example file
Configure your connection keys
Generate project keys
php artisan key:generate
Run migrations with seeders
php artisan migrate --seed
if you need to do it again use
php artisan migrate:fresh --seed
By default, a user will be created with the credentials: mail@gmail.com and password 12345678.
This can be modified in the file database\seeders\UserSeeder.php
<?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Seeder;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
User::create([
'name' => 'Marcos Rodriguez',
'email' => 'mail@gmail.com',
'password' => bcrypt('12345678')
])->assignRole('Admin');
User::factory(20)->create();
}
}
The Laravel framework is open-sourced software licensed under the MIT license.