How can i insert it my laravel project?

|
hatsushiroyuki 2021-12-15 17:52:05
Great_Ballz_Of_Fire 2021-12-15 17:49:27
That’s true! It would be difficult for old APIs or APIs that have been used by other projects to simply change their naming conventions. Unless they were to do that in a new version of the API so that older projects that depend on the API don’t break

That’s why most of the APIs use the v1 or v2 prefix. Major changes, such as this “naming convention” is considered major as it may break things.

Great_Ballz_Of_Fire 2021-12-15 17:52:35
hatsushiroyuki 2021-12-15 17:52:05
That’s why most of the APIs use the v1 or v2 prefix. Major changes, such as this “naming convention” is considered major as it may break things.

Exactly!

PHP Begginer 2021-12-15 18:01:24
I am having some issues on docker .Can someone assist me how to setup ssl certificate on mac please
PHP Begginer 2021-12-15 18:01:37
company-crm_traefik | time=”2021-12-13T21:03:37Z” level=debug msg=”No default certificate, generating one”
hatsushiroyuki 2021-12-15 18:02:28
I don’t have any experience using docker. I’m sorry, couldn’t help.
PHP Begginer 2021-12-15 18:10:18
Thanks @hatsushiroyuki
Pixr 2021-12-15 18:17:52
I want a website scripts plz ping
ouboros 2021-12-15 18:41:14
I want to install a font (https://fontsource.org/fonts/roboto-mono) via npm. How can i insert it my laravel project? (Using TailwindCSS if important)
hatsushiroyuki 2021-12-15 18:53:42
ouboros 2021-12-15 18:41:14
I want to install a font (https://fontsource.org/fonts/roboto-mono) via npm. How can i insert it my laravel project? (Using TailwindCSS if important)

You might want to see the TailwindCSS documentation about adding font family here https://tailwindcss.com/docs/font-family#customizing-your-theme

Font Family – Tailwind CSSTailwindcss
Utilities for controlling the font family of an element.
Shiv_95 2021-12-15 20:30:08
Hi does anyone use the airtel my wifi here?
Zoxedelfless 2021-12-15 21:22:12
oes anyone have a website for free scripts
Zoxedelfless 2021-12-15 21:22:24
does*
rawabi_alammar 2021-12-15 21:45:40
how can i make a user account on admin panel with specific restrictions??
Opare 2021-12-15 21:54:54
laravel_discuss-102265.jpg
Can anyone guide me to solve this?
crissgant 2021-12-15 22:45:48
Hello.. how can I fill a fillable PDF and generate a QR code for a URL and insert this QR in the PDF that I filled
Ru2sa 2021-12-16 02:40:26
laravel_discuss-102268.jpg
Can anyone solve this problem
Error in line 50 and 51??
Idk what is the problem in (createtoken) function
hatsushiroyuki 2021-12-16 02:50:02
Ru2sa 2021-12-16 02:40:26
Can anyone solve this problem
Error in line 50 and 51??
Idk what is the problem in (createtoken) function

The createToken function is not defined

hatsushiroyuki 2021-12-16 02:50:53
The error is whether the User model has no method called createToken, or it’s just lint error because Auth::user() is not referencing to User model.
Ru2sa 2021-12-16 02:54:22
hatsushiroyuki 2021-12-16 02:50:53
The error is whether the User model has no method called createToken, or it’s just lint error because Auth::user() is not referencing to User model.

I defined this function in other line and it doesnot take me erro

hatsushiroyuki 2021-12-16 02:54:48
Ru2sa 2021-12-16 02:54:22
I defined this function in other line and it doesnot take me erro

Provide me a screenshot

Ru2sa 2021-12-16 02:55:07
laravel_discuss-102273.jpg

hatsushiroyuki 2021-12-16 02:55:27
hatsushiroyuki 2021-12-16 02:50:53
The error is whether the User model has no method called createToken, or it’s just lint error because Auth::user() is not referencing to User model.

Exactly what I explain

Ru2sa 2021-12-16 02:55:51
hatsushiroyuki 2021-12-16 02:55:27
Exactly what I explain

So what should i do ?

Great_Ballz_Of_Fire 2021-12-16 02:56:38
Ru2sa 2021-12-16 02:40:26
Can anyone solve this problem
Error in line 50 and 51??
Idk what is the problem in (createtoken) function

Show me your user model

hatsushiroyuki 2021-12-16 02:56:52
Look

Auth::user() is not referencing AppModelUsers, because the user() function from IlluminateSupportFacadesAuth is the own method.

It’s not an error in the application, but the IDE error.

hatsushiroyuki 2021-12-16 02:57:05
It’s not causing error to your application, just run it
hatsushiroyuki 2021-12-16 02:57:44
As a comparison

Auth::user()->createToken is different, to
(new User)->createToken

Ru2sa 2021-12-16 03:02:12
hatsushiroyuki 2021-12-16 02:57:05
It’s not causing error to your application, just run it

Oh ok

Ru2sa 2021-12-16 03:02:42
Great_Ballz_Of_Fire 2021-12-16 02:56:38
Show me your user model

laravel_discuss-102284.jpg

Ru2sa 2021-12-16 03:02:42
Great_Ballz_Of_Fire 2021-12-16 02:56:38
Show me your user model

laravel_discuss-102283.jpg

hatsushiroyuki 2021-12-16 03:04:47
You can’t fix IDE lint error, unless you tell the VScode’s extension maintainer
hatsushiroyuki 2021-12-16 03:06:17
In the other word, IDE is your text editor, in this case VScode
Great_Ballz_Of_Fire 2021-12-16 03:07:57
Ru2sa 2021-12-16 03:02:42

Just wanted to check if you were using the HasApiTokens trait, which you are.

hatsushiroyuki 2021-12-16 03:09:39
Great_Ballz_Of_Fire 2021-12-16 03:07:57
Just wanted to check if you were using the HasApiTokens trait, which you are.

Exactly the trait needed

Great_Ballz_Of_Fire 2021-12-16 03:11:50
Ru2sa 2021-12-16 03:02:42

@hatsushiroyuki is right, vs code linter for PHP checks classes for methods and properties defined and then uses that information to provide auto-completions and error detection.

|