每次我打提交按鈕我得到這個問題 ReflectionException 類UserController中不存在 <?php
namespace app\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
class UserController extends Controller {
我創建一個回覆模型,然後試圖返回的對象與它的主人關係後負荷()。這裏是一個返回一個空對象的代碼: //file: Thread.php
//this returns an empty object !!??
public function addReply($reply)
{
$new_reply = $this->replies()->create($reply);
r