What about the namespace in the model?

|
LiceaPacheco 2020-01-10 18:17:15
In the frontend side i use vue and Laravel echo
mahdyfo 2020-01-10 18:19:56
LiceaPacheco 2020-01-10 18:16:37
Any ideas

Did you store the certs in files 🤔 Check the handshaking process and make sure the generated keys are correct.

LiceaPacheco 2020-01-10 18:20:07
laravel_discuss-23662.jpg
This Is the screenshot
LiceaPacheco 2020-01-10 18:20:36
mahdyfo 2020-01-10 18:19:56
Did you store the certs in files 🤔 Check the handshaking process and make sure the generated keys are correct.

Yes i did that

LiceaPacheco 2020-01-10 18:20:47
In my .env
LiceaPacheco 2020-01-10 18:21:15
laravel_discuss-23665.jpg

G0MPER 2020-01-10 22:24:39
Somebody help me with Laravel + Nuxt? How use both in the same proyect?
G0MPER 2020-01-10 22:30:38
I found this project in Github https://github.com/cretueusebiu/laravel-nuxt, but need understand line for line, for example, this line -> Route::post(‘register’, ‘AuthRegisterController@register’);
I try to find the method “register” in the document and not found

GitHub – cretueusebiu/laravel-nuxt: A Laravel-Nuxt starter kit.GitHub
A Laravel-Nuxt starter kit. Contribute to cretueusebiu/laravel-nuxt development by creating an account on GitHub.
ErSoul 2020-01-10 22:37:23
that method is in the RegistersUsers trait
Fatima 2020-01-10 23:31:15
I have two header section ,one for index page one for the other pages how can I include these two header In master.blade.php
hendrorahmat 2020-01-10 23:42:24
Fatima 2020-01-10 23:31:15
I have two header section ,one for index page one for the other pages how can I include these two header In master.blade.php

In master.blade.php you should include both

Example :
include(“indexpagename”)
include(“otherpagename”)

Noorev7 2020-01-11 00:19:37
laravel_discuss-23687.jpg

Noorev7 2020-01-11 00:19:48
How can I fix that?!
Noorev7 2020-01-11 00:20:11
laravel_discuss-23690.jpg

Dev 2020-01-11 00:27:05
Noorev7 2020-01-11 00:20:11

I think it should be Route::post.

Noorev7 2020-01-11 00:27:55
Not working
Noorev7 2020-01-11 00:28:16
I have tried it
Dev 2020-01-11 00:29:07
Also, I have noticed another typo. There is a dot instead of comma.
Noorev7 2020-01-11 00:29:56
Ops
Dev 2020-01-11 00:30:39
I wonder why you didn’t get syntax errors but got Method Not Allowed exception. LOL.
Noorev7 2020-01-11 00:31:02
But still not working
Noorev7 2020-01-11 00:31:08
Look
Noorev7 2020-01-11 00:31:17
laravel_discuss-23699.jpg

Dev 2020-01-11 00:32:40
Check if it is UserController or Usercontroller.
Noorev7 2020-01-11 00:33:18
Usercontroller
Noorev7 2020-01-11 00:33:56
laravel_discuss-23702.jpg

Dev 2020-01-11 00:34:39
Screenshot your folder structure of controllers.
Noorev7 2020-01-11 00:35:23
laravel_discuss-23704.jpg

Noorev7 2020-01-11 00:36:21
laravel_discuss-23705.jpg

Dev 2020-01-11 00:36:54
You have got another controllers folder inside parent controllers folder. So, you need to modify namespace.
Noorev7 2020-01-11 00:38:01
laravel_discuss-23707.jpg

Dev 2020-01-11 00:39:00
Aight. It looks fine in the controller. Now change it in api routes file.
Dev 2020-01-11 00:39:26
ControllersUsercontroller@create
Noorev7 2020-01-11 00:40:51
laravel_discuss-23710.jpg

Dev 2020-01-11 00:41:29
It should be AppModelsUser.
Dev 2020-01-11 00:42:08
By the way, check the namespace in models as well.
Noorev7 2020-01-11 00:42:41
No its models
Noorev7 2020-01-11 00:42:50
With m not M
Noorev7 2020-01-11 00:43:08
laravel_discuss-23715.jpg

Dev 2020-01-11 00:43:32
That’s fine. What about the namespace in the model?
Dev 2020-01-11 00:43:53
Letter case in the folder doesn’t matter. Namespace matters.
Noorev7 2020-01-11 00:44:26
Look new errors 😭 sorry
Noorev7 2020-01-11 00:44:45
laravel_discuss-23719.jpg

Dev 2020-01-11 00:44:46
Screenshot your model. Is it declared like:

namespace AppModels;

?

Noorev7 2020-01-11 00:45:52
laravel_discuss-23721.jpg

Dev 2020-01-11 00:46:56
Noorev7 2020-01-11 00:44:45

Now the error is within the controller. Check it out.

Noorev7 2020-01-11 00:48:09
Duuuud
Noorev7 2020-01-11 00:48:18
It’s wooorking
Dev 2020-01-11 00:48:25
Cool.
Noorev7 2020-01-11 00:48:29
Thnx
|