Skip to content

Blog auto administrable con sistema de roles y permisos para usuarios

Notifications You must be signed in to change notification settings

phpdevsolutions/blog

Repository files navigation

Build Status Total Downloads Latest Stable Version License

About Laravel

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:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Installation

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();
    }
}

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

Blog auto administrable con sistema de roles y permisos para usuarios

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published