Melcu

Experience

250

0 Best Reply Awards

  • Member Since 3 Months Ago
  • 1 Lesson Completed
  • 0 Favorites

2nd August, 2018

Melcu left a reply on Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException • 2 months ago

Restarted the project.

Thanks for help.

19th July, 2018

Melcu left a reply on Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException • 2 months ago

class TicketsController extends Controller
{
    public function create() { return view('tickets.create');}

}

public function store (TicketFormRequest $request)
{
    return $request->all();
}

@ Tray2 is nothing serious. I just try to learn and i don't get why that post is not working.

Thanks.

Melcu left a reply on Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException • 2 months ago

I do not get 404. All routes with get are working. This in the only route with post.... where i get:

Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException

18th July, 2018

Melcu left a reply on Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException • 2 months ago

➜ test php artisan view:clear Compiled views cleared!

Clear browser cache also.

Same.

Melcu left a reply on Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException • 2 months ago


Route::get('/', function () { return view('welcome');});

Route::post('/create','[email protected]');

Route::get('home', function (){return view ('partial.home');});

Route::get('child', function () {return view('layout.child');});

Route::post('/store','[email protected]');

    <div class="container col-md-8 col-md-offset-2 ">
        <div class="well well bs-component">
            <form action="create" class="form-horizontal" method="post">
                <input type="hidden" name="_token" value="{!! csrf_token() !!}">
                <form>

                    <div class="form-group">
                        <p class="text-center">SUBMIT  TICKET</p>
                        <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email" name="Email">
                        <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
                    </div>
                    <div class="form-group">
                        <p class="text-center">TITLE</p>
                        <input type="password" class="form-control" id="exampleInputPassword1" placeholder="TITLU TICKET" name="TitluTicket">
                    </div>
                    <div class="form-group text-center">
                        <label for="exampleTextarea">Example textarea</label>
                        <textarea class="form-control" id="exampleTextarea" rows="3" placeholder="textarea" name="ContinutTicket"></textarea>
                    </div>
                    <div class="form-group">
                        <div class="col-lg-10 col-lg-offset-2">
                            <button class="btn btn-default">Cancel</button>
                            <button type="submit" class="btn btn-primary" >Submit</button>
                            </div>
                   </div>
                </form>
            </form>
        </div>
    </div>

Melcu left a reply on Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException • 2 months ago

 protected function methodNotAllowed(array $others)
    {
        throw new MethodNotAllowedHttpException($others);
    }

This is what i still got after i follow your instructions.

Melcu started a new conversation Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException • 2 months ago

Hello, I am new here, try to learn Laravel.

Sadly i got stuck in this post route.

Route::post('/create','[email protected]');

And i got the html:

If i switch to "get"everything works. Not so much with post.

Can anyone explain ?

9th July, 2018

Melcu left a reply on How To Install PHP Artisan? • 3 months ago

Hello,

I had the same issue, trying to run php artisan. I got this error: Could not open input file: artisan After i read this post i figure i should try and run artisan from project location. Is working great.

Thank you.

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.