<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\customer;
use App\Http\Requests;
class CustomerController extends Controller
{
public function index()
{
return view('insert');
}
public function create()
{
}
public function store(Request $request)
{
$customer = new customer;
$customer->name = $request->name;
$customer->sex = $request->sex;
$customer->pob = $request->pob;
$customer->tel = $request->tel;
$customer->email = $request->email;
$customer->save();
}
public function show()
{
return view('show');
}
}
?>
我m到處誤差級」應用程序\ HTTP \控制器\客戶找不到Laravel 5.2。
我已經使用App \ customer; 使用輸入; 爲什麼我會收到錯誤? 代碼中的問題是什麼?級「應用程序 HTTP 控制器客戶找不到Laravel 5.2