Creating and Viewing a Subweddit
To begin making a subweddit, we must make 4 things - A Subweddit model A make_subweddit_table migration A Subweddit factory (a useful laravel technique for filling a database table with fake data A subweddit Controller, to control the data All 3 can be made by the command : php artisan make:model Subweddit -fmc (the suffix -fmc does the magic, making the factory, migration and controller) For the miagration - this is the layout as it stands: Apart from the ordinary id and timestamps, the subweddit table contains the subweddit name, bio and mod_id, which, by default, is the user who created the subweddit, they will be able to delete the subweddit, and in the future remove posts as well as comments from posts. Now we are able to fill in the factory to create some fake data. after altering SubwedditFactory.php to look like so and attempting to use the factory by running factory(App\Models\Subweddit)->create(); I encountered a problem PHP Fatal error...