Please help me to fix the problem on Account Settings page where I try to update the account settings, but Submit button doesn't work. Cancel button works.
Here is my controller:
<?php
namespace App\Http\Controllers\Account;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class AccountSettingsController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
addJavascriptFile("assets/js/custom/account/settings/deactivate-account.js");
addJavascriptFile("assets/js/custom/account/settings/overview.js");
addJavascriptFile("assets/js/custom/account/settings/profile-details.js");
addJavascriptFile("assets/js/custom/account/settings/signin-methods.js");
return view("pages/account.settings");
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
$request->validate([
"name" => ["required", "string", "max:255"],
"company" => ["required", "string", "max:255"],
"phone" => ["required", "numeric", "min:10"],
]);
}
/**
* Display the specified resource.
*/
public function show(string $id)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(string $id)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, string $id)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(string $id)
{
//
}
}
Hi,
For the specific functionality in Laravel, you have to implement it based on your requirements.
The Metronic Laravel Starter Kit just simplifies the assets integration process by offering a pre-built starter application that already includes the HTML template and necessary assets.
Thanks