Skip to content
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

returns the default value in each case. #35

Open
akiftezcan38 opened this issue Jun 1, 2024 · 1 comment
Open

returns the default value in each case. #35

akiftezcan38 opened this issue Jun 1, 2024 · 1 comment
Labels
closed closed issues

Comments

@akiftezcan38
Copy link

returns the default value in each case.
Whether meta is present or not, the value written to the default is always returned. am i misunderstanding ? . you need to fix this

// return value or 'default value ' if not exists or value is null
$post->getMeta('key' , 'default value') ;

@Zoha
Copy link
Owner

Zoha commented Jun 3, 2024

Hi @akiftezcan38 , thanks for using Laravel-meta

The package is working as expected as you can see in the below image

Also, we have tests for all the scenarios on documentation which are already successfully executed in actions

Please make sure that you are following the documentation and that you have the data on your meta table in the database

image

@Zoha Zoha added the closed closed issues label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed closed issues
Projects
None yet
Development

No branches or pull requests

2 participants