How to get this code work to store in Laravel. No errors and no storage

I can’t store name and IP address to DB. I created a table ‘info’ with appropriate fields by running php artisan migrate. A schema Schema::create(‘info’, function (Blueprint $table) { $table->increments(‘id’); $table->string(‘name’); $table->string(‘ip’); $table->timestamp(‘created_at’)->nullable(); }); A model for Info class Info extends Model { protected $fillable = [‘ip’, ‘name’]; } Maybe the problem is in my…

Select specific columns on eager loading polymorphic relationships – Laravel

In a “normal” relationship I can do something like this to select only a few columns while eager loading (using with): ->with([‘reported’ => function ($query) { $query->select([‘nick’,’id’]); } ]) But how to do it when working with polymorphic relationship where the columns i want to select are different according to the model morphed? I have…

Laravel – User edit form not linking to controller

I’m creating a page for users to update their settings (settings.blade.php), it’s stored inside a user_admin folder, so the correct path is user_admin/settings.blade.php. Here is my SettingsController.php public function edit() { $user = auth()->user(); return view(‘user_admin.settings’, compact(‘user’)); } And here is how I am trying to link to it; <form method=”POST” action=”” enctype=”multipart/form-data”> @csrf The…