You need to put SongsTableSeeder
into file SongsTableSeeder.php
in the same directory where you have your DatabaseSeeder.php
file.
And you need to run in your console:
composer dump-autoload
to generate new class map and then run:
php artisan db:seed
I’ve just tested it. It is working without a problem in Laravel 5
Related Contents:
- Class ‘Illuminate\Html\HtmlServiceProvider’ not found Laravel 5
- Can Anyone Explain Laravel 5.2 Multi Auth with Example
- Laravel 5.6 – Passport JWT httponly cookie SPA authentication for self consuming API?
- How to protect image from public view in Laravel 5?
- Laravel – Route::resource vs Route::controller
- PHP7 : install ext-dom issue
- How can I resolve “Your requirements could not be resolved to an installable set of packages” error?
- How to keep Laravel Queue system running on server
- Persisting sessions across subdomains in Laravel 5
- Laravel Redirect Back with() Message
- No Application Encryption Key Has Been Specified
- How can I remove a package from Laravel using PHP Composer?
- Undefined variable: errors in Laravel
- How do I catch exceptions / missing pages in Laravel 5?
- Laravel Session always changes every refresh / request in Laravel 5.4
- How to compare two Carbon Timestamps?
- What is the difference between queue:work –daemon and queue:listen
- Modify existing Authorization module (email to username)
- Composer error while installing Laravel: ‘mbstring’ is missing?
- How to select specific columns in laravel eloquent
- ReflectionException: Class ClassName does not exist – Laravel
- What is difference between use env(‘APP_ENV’), config(‘app.env’) or App::environment() to get app environment?
- Laravel 5.4^ – How to customize notification email layout?
- Laravel 5.2 validation errors
- Laravel showing “Failed to clear cache. Make sure you have the appropriate permissions”
- Laravel: how to set date format on model attribute casting?
- Including a css file in a blade template?
- Laravel : Syntax error or access violation: 1055 Error
- Laravel 5 PDOException Could Not Find Driver [duplicate]
- How to place the ~/.composer/vendor/bin directory in your PATH?
- Laravel 5 – global Blade view variable available in all templates
- Composer error: “PHP extension fileinfo is missing from your system”
- Laravel Socialite: InvalidStateException
- Uploading Laravel Project onto Web Server
- Laravel: How can I change the default Auth Password field name?
- Can’t install laravel installer via composer
- multiple mail configurations
- What Are the Differences Between PSR-0 and PSR-4?
- Laravel Fluent Query Builder Join with subquery
- Laravel: validate an integer field that needs to be greater than another
- Laravel use mysql indexing
- Getting just the latest value on a joined table with Eloquent
- ErrorBag is always empty in Laravel 5.2
- Where can I set headers in laravel
- “No such file or directory” or “No such host is known” when running migrations
- How to select all column name from a table in laravel?
- Laravel VueJs : `router-view` does not render the component
- Difference between Eloquent\Model::get() and all()
- Laravel-5 how to populate select box from database with id value and name value
- SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known