Giter VIP home page Giter VIP logo

Comments (4)

KNMoise avatar KNMoise commented on June 10, 2024

use flase and reader error if there is no error displayed, then try to upgrade/update your db version sql
table->timestamps(false);

from laravel-permission.

sabas avatar sabas commented on June 10, 2024

@KNMoise care to clarify? I reported a solution to the default set up of the package :)

from laravel-permission.

KNMoise avatar KNMoise commented on June 10, 2024

Sorry i mistaken read the error incorrectly.

1st option

run php artisan make:seeder AdminUserSeeder
then in db - seeder

public function run()
    {
        $this->call(AdminUserSeeder::class);
        User::create([
            'name' => 'Admin',
            'email' => '[email protected]', //user any email 
            'password' => Hash::make('password'),
        ])->assignRole('admin');
    }

2nd Option

if doesn't work check for the name column is of type int(11). It expects an integer, not a string (VARCHAR). Change your column type (preferably with a migration) from int(11) to a VARCHAR.

from laravel-permission.

drbyte avatar drbyte commented on June 10, 2024

There are no plans to change the migration to accommodate this, as it is very driver-specific.
Anyone needing the timestamps(2) format can easily update their migration accordingly.

from laravel-permission.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.