Note that there are some explanatory texts on larger screens.

plurals
  1. POHaving trouble understanding links in laravel 4
    primarykey
    data
    text
    <p>I have a problem with link_to_action in laravel 4</p> <p>In laravel 3 i would show a link like</p> <pre class="lang-php prettyprint-override"><code>{{ HTML::link_to_action('user/create', 'Create User') }} </code></pre> <p>But since I've switched to laravel 4 I'm creating my controllers like this UserController but when I try to use the HTML </p> <pre class="lang-php prettyprint-override"><code>{{ HTML::linkAction('user/create', 'Create User') }} </code></pre> <p>It gives me and error that action doesn't exist even though there's a method named create. Any help would be greatly appreciated.</p> <p>And here's my controller</p> <pre class="lang-php prettyprint-override"><code>&lt;?php class UserController extends \BaseController { /** * Display a listing of the resource. * * @return Response */ public function index() { // } /** * Show the form for creating a new resource. * * @return Response */ public function create() { // } /** * Store a newly created resource in storage. * * @return Response */ public function store() { // } /** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { // } /** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { // } /** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update($id) { // } /** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { // } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload