Fix auth-user:list search arguments Column not found error
Summary
When running the auth-user:list command with the --search=KEYWORD argument, an error is returned.
Technical Details
php artisan auth-user:list --search=keyword
Illuminate\Database\QueryException
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'name' in 'where clause' (SQL: select * from `auth_users` where (`name` LIKE %$search_option% or `slug` LIKE %$search_option% or `description` LIKE %$search_option%) and `auth_users`.`deleted_at` is null order by `created_at` asc)
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:671
667▕ // If an exception occurs when attempting to run a query, we'll format the error
668▕ // message to include the bindings with SQL, which will make this exception a
669▕ // lot more helpful to the developer instead of just the database's errors.
670▕ catch (Exception $e) {
➜ 671▕ throw new QueryException(
672▕ $query, $this->prepareBindings($bindings), $e
673▕ );
674▕ }
675▕
• A column was not found: You might have forgotten to run your migrations. You can run your migrations using `php artisan migrate`.
https://laravel.com/docs/master/migrations#running-migrations
+11 vendor frames
12 app/Console/Commands/Auth/AuthUserList.php:82
Illuminate\Database\Eloquent\Builder::get()
+13 vendor frames
26 artisan:37
Illuminate\Foundation\Console\Kernel::handle()