-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotFoundHttpException #181
Comments
Hi @odyright Thanks! |
yes, i tried with & without the |
I'm sorry I mistyped it.. could you try navigating to |
Those warnings in the terminal are fine.. they're generated by So there are no errors in your Chrome Console when you navigate to |
something's wrong with my code when I type the link |
yes even if it's redirecting, you can have the Chrome Console already open.. and just see if there are errors |
So you can see that it wasn't able to find the template And this assumes you've ran |
|
i remember that i wasn't be able to run |
yeah Can you please do the following:
|
i did |
Maybe @jadsalhani has an idea? |
@odyright how did you create the create_post files? Through the generators or manually? And can you show us their relative paths as well |
hi @jadsalhani the create_post files has been created through the generator; here is the path: |
oh.. it's missing a |
??? 😧 where??? pls |
so in your routes.js file, go to the
So it's a bug in v3.1 which hasn't been released yet.. I'm going to push a fix for that right now. |
@odyright let me know if that fixes it for you |
ok |
errors in my chrome console: |
I think you had a mix of both apps because you were working on the unstable version Open your header.html and rename it to header.page.html |
i already did it before, when u post the modif. in route.js but still not working. |
okay what errors do you see? |
@jadjoubran the same i mentioned. |
you can do them with components.. but it's not necessary if they don't have any logic |
Show me the path for your |
Hi @odyright Can you please show us the angular/app/ folder structure if it's no trouble? |
@jadjoubran the path is : @jadsalhani here you are: |
okay and did you run |
ok thanks @jadjoubran & @jadsalhani i restarted laravel homestead & vagrant: everything is back in order with some errors: |
if i understand some value the assertion expected isn't defined. but i don't know how to fix it! |
solved,
Now all things are right, but in another step with the form "create post" i can't save the entries in database when i tried the form, could you help me? |
Just wait for the upcoming screencasts 😄 |
ok i'm waiting 👍 |
hi @jadjoubran with the form "create post" when i tried to post something in the form i get nothing in my database, could you help me? |
Because all the requests should be done to Try to make a call to |
I think there was a mistake in the tutorial, if you're using |
ok thanks @a-komarev i'll try. |
@odyright the issue was in the tutorial |
thanks @jadjoubran i fixed it and now the console shows me : |
i got : |
Yes it means there's an error with your backend code |
|
please check #189 |
ok thanks @jadjoubran i also commented the validation out and it works very well; great Tuts.
|
good i see i think that you want to do things simply such as the Dingo Api's wiki said:
that's great 👍 |
Actually no need to comment it out if you fix the imports
|
hi @jadjoubran
but I have rather done a modification of the code in the public function create(Request $request)
{
$this->validate(,[
'name' => 'required',
'topic' => 'required',
]);
$post = new Post;
$post->name = $request->input('name');
$post->topic = $request->input('topic');
$post->save();
return response()->success(compact('post'));
} to public function create(Request $request)
{
$this->validate($request,[
'name' => 'required',
'topic' => 'required',
]);
$post = new Post;
$post->name = $request->input('name');
$post->topic = $request->input('topic');
$post->save();
return response()->success(compact('post'));
} what do you think ? |
That's right, thanks! |
u're welcome even if someone suggested it before me |
Yes you are 😄 🚀 |
hi @jadjoubran following the tutorial V3.1, i got error: Sorry, the page you are looking for could not be found.
i checked my console and it shown:
Here is what my route.js =>
angular/config/Routesconfig.js
looks like:what should i do?
The text was updated successfully, but these errors were encountered: