我的laravel项目需要帮助。我显然是新来的,所以请帮助我理解事情。我的问题是我不知道这里的代码出了什么问题。我正在尝试通过此链接访问某个文件,但会显示错误消息,即在服务器上找不到所请求的URL。
对于我的routes.php
Route::get('registration','AdminController@registration');
对于registration.blade.php
@extends('layouts.master')
@section('content')
{{ Form::open(['url'=>'registration']) }}
<div>
{{ Form::label('name','Name: ') }}
{{ Form::text('name','',['placeholder'=>'Name']) }}
</div>
<div>
{{ Form::label('username','Username: ') }}
{{ Form::text('username','',['placeholder'=>'Username']) }}
</div>
<div>
{{ Form::label('password','Password: ') }}
{{ Form::text('password','',['placeholder'=>'Password']) }}
</div>
<div>
{{ Form::submit('Register') }}
</div>
{{ Form::close() }}
@endsection
对于AdminController.php
<?php
class AdminController extends Basecontroller{
public function registration()
{
return View::make('content.registration');
}
}
这里似乎是什么问题?我不太明白...
没关系,我已经找到解决该特定问题的方法。我的代码,一切正常,没有错别字和错误,所以这里的问题是我的WAMP Server。为了使所有这些工作顺利完成,您只需单击wampicon-> apache-> apachemodule->,然后检查rewrite_module,然后重新启动WAMP。
之后一切都会正常。希望这对与我有相同问题的人可能有用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句