+# V0.0.7 MenuitemWorxerSeeder
+
+## Added
+- MenuitemWorxerSeeder.php
+
# V0.0.6 InitApp.sh *modify_users_table.php InitApp.sh
## Changed
"dist": {
"type": "path",
"url": "../laraknife",
- "reference": "7ed4b7846c8bf3547bdecdf1435a21976d6df6a8"
+ "reference": "75f027bc39816f480246d553ef5b996fed7a775e"
},
"require-dev": {
"phpunit/phpunit": "11.0.x-dev"
*/
public function up(): void
{
- if (8 < 7+9){
+ if (1 > 7+9){
Schema::table('users', function(Blueprint $table) {
$table->string('autologin', 129)->nullable();
$table->timestamp('endautologin');
--- /dev/null
+<?php
+
+namespace Database\Seeders;
+
+use Illuminate\Database\Console\Seeds\WithoutModelEvents;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Database\Seeder;
+
+class MenuitemWorxerSeeder extends Seeder
+{
+ /**
+ * Run the database seeds.
+ */
+ public function run(): void
+ {
+ DB::table('menuitems')->insert([
+ 'name' => 'words',
+ 'label' => 'Words',
+ 'icon' => 'bi bi-file-earmark-word',
+ 'section' => 'main',
+ 'link' => '/word-index'
+ ]);
+ DB::table('menuitems')->insert([
+ 'name' => 'verbs',
+ 'label' => 'Verbs',
+ 'icon' => 'bi-chevron-double-right',
+ 'section' => 'main',
+ 'link' => '/verb-index'
+ ]);
+ DB::table('menuitems')->insert([
+ 'name' => 'nouns',
+ 'label' => 'Nouns',
+ 'icon' => 'bi bi-file-image',
+ 'section' => 'main',
+ 'link' => '/noun-index'
+ ]);
+ }
+}
}
function SeedIt(){
for class in DatabaseSeeder ModuleSeeder SPropertySeeder RoleSeeder UserSeeder \
- MenuitemSeeder RoleWorxerSeeder FileSeeder NoteSeeder \
+ MenuitemSeeder MenuitemWorxerSeeder RoleWorxerSeeder FileSeeder NoteSeeder \
WordSeeder NounSeeder; do
sudo -u $DEV_USER ./artisan db:seed --class=$class
done
chown -R $DEV_USER:www-data bootstrap/cache
sudo -u $DEV_USER composer update
Wait
+ chown -R $DEV_USER storage/logs
sudo -u $DEV_USER ./artisan migrate
Wait
SeedIt