Is it redirecting or returning a blank view?

|
mdmx7 2021-12-15 15:21:11
Hello all,
How to update Laravel from 5.1 to 7 or 8 version?
Please reply with source
Thanks
Anuj 2021-12-15 16:08:31
How to get text from image in laravel 8
Anuj 2021-12-15 16:08:52
Is any package
Anuj 2021-12-15 16:09:03
For it
Anuj 2021-12-15 16:09:14
Suggest me
hatsushiroyuki 2021-12-15 16:13:07
Anuj 2021-12-15 16:08:52
Is any package

I’m not really confident about the package itself, since Python could do more by performance and ease of use. If you still want to use Laravel, try this package https://github.com/alimranahmed/LaraOCR

GitHub – alimranahmed/LaraOCR: Laravel Optical Character Reader(OCR) package using ocr engines like TesseractGitHub
Laravel Optical Character Reader(OCR) package using ocr engines like Tesseract – GitHub – alimranahmed/LaraOCR: Laravel Optical Character Reader(OCR) package using ocr engines like Tesseract
panda08374 2021-12-15 16:33:13
laravel_discuss-102213.jpg
Am doing this and it’s redirecting me to a blank page 😢 anyone who can help please,, thanks
Pra_shi 2021-12-15 16:34:55
If I See php version in my xampp then it shows 8.0.2 and if I See php version in my terminal using command php – v then it Shows php version 7.1.33…in laravel whn I download jet stream. Then it Shows an error your php version should be 7.3 or above… Can anyone plz tell me How can I solve it coz I am learning laravel
hatsushiroyuki 2021-12-15 16:35:42
panda08374 2021-12-15 16:33:13
Am doing this and it’s redirecting me to a blank page 😢 anyone who can help please,, thanks

Is it redirecting or returning a blank view?

hatsushiroyuki 2021-12-15 16:35:52
Check each views if they has content in it
hatsushiroyuki 2021-12-15 16:36:13
Pra_shi 2021-12-15 16:34:55
If I See php version in my xampp then it shows 8.0.2 and if I See php version in my terminal using command php – v then it Shows php version 7.1.33…in laravel whn I download jet stream. Then it Shows an error your php version should be 7.3 or above… Can anyone plz tell me How can I solve it coz I am learning laravel

Do you have multiple XAMPP installed?

Pra_shi 2021-12-15 16:37:36
hatsushiroyuki 2021-12-15 16:36:13
Do you have multiple XAMPP installed?

First tym I installed.. But I deleted it now

Pra_shi 2021-12-15 16:37:48
I have only one xampp
hatsushiroyuki 2021-12-15 16:38:13
Pra_shi 2021-12-15 16:37:36
First tym I installed.. But I deleted it now

I see

panda08374 2021-12-15 16:38:26
hatsushiroyuki 2021-12-15 16:35:42
Is it redirecting or returning a blank view?

Blank view but my views have content inside

hatsushiroyuki 2021-12-15 16:38:28
Can you send me a picture of the XAMPP please?
hatsushiroyuki 2021-12-15 16:39:02
panda08374 2021-12-15 16:38:26
Blank view but my views have content inside

Then probably it’s not returning any views.

hatsushiroyuki 2021-12-15 16:39:29
Try to add return “Invalid role” in the end of the index() function?
panda08374 2021-12-15 16:39:44
hatsushiroyuki 2021-12-15 16:39:02
Then probably it’s not returning any views.

What might be the problem 😩😩

panda08374 2021-12-15 16:41:34
hatsushiroyuki 2021-12-15 16:39:29
Try to add return “Invalid role” in the end of the index() function?

It has returned the ‘invalid role’

hatsushiroyuki 2021-12-15 16:43:30
panda08374 2021-12-15 16:41:34
It has returned the ‘invalid role’

laravel_discuss-102227.jpg
Check my code explanation

hatsushiroyuki 2021-12-15 16:46:24
panda08374 2021-12-15 16:41:34
It has returned the ‘invalid role’

Then, your User has neither admin, staff, non-staff, or student role. Check your roles, and where did the roles are assigned.

Anuj 2021-12-15 17:00:35
hatsushiroyuki 2021-12-15 16:13:07
I’m not really confident about the package itself, since Python could do more by performance and ease of use. If you still want to use Laravel, try this package https://github.com/alimranahmed/LaraOCR

Bro,it is not working..it give null value.. First I had already tried it

Anuj 2021-12-15 17:00:47
Any other
hatsushiroyuki 2021-12-15 17:01:12
Anuj 2021-12-15 17:00:47
Any other

Just use Python

Great_Ballz_Of_Fire 2021-12-15 17:16:01
I normally see APIs use snake case for keys (eg. [‘user_id’ => 1]) and I am guessing that is a norm. But most SPAs that consume such APIs use camel case for variable names and array/object keys.

Which means if an API is using snake case, for it’s keys, the front end will have to convert/alias those snake case to camel case before using them which seems like an extra step to take.

Instead of going through that, wouldn’t it be efficient to just have the API use camel casing instead of snake case?

panda08374 2021-12-15 17:40:18
hatsushiroyuki 2021-12-15 16:46:24
Then, your User has neither admin, staff, non-staff, or student role. Check your roles, and where did the roles are assigned.

I’ve solved it thanks

hatsushiroyuki 2021-12-15 17:42:56
Great_Ballz_Of_Fire 2021-12-15 17:16:01
I normally see APIs use snake case for keys (eg. [‘user_id’ => 1]) and I am guessing that is a norm. But most SPAs that consume such APIs use camel case for variable names and array/object keys.

Which means if an API is using snake case, for it’s keys, the front end will have to convert/alias those snake case to camel case before using them which seems like an extra step to take.

Instead of going through that, wouldn’t it be efficient to just have the API use camel casing instead of snake case?

I agree it is more efficient if the API uses the camelCase as you said. But it depends on what language the API is written in.

I’m pretty sure it is based on the naming convention of the language. Some language tends to use camelCase and other use snake_case.

If you’re working with the back-end developer, try to communicate your uneasiness.

Anuj 2021-12-15 17:43:39
Any ocr package for retrieving text from image
hatsushiroyuki 2021-12-15 17:44:38
Great_Ballz_Of_Fire 2021-12-15 17:16:01
I normally see APIs use snake case for keys (eg. [‘user_id’ => 1]) and I am guessing that is a norm. But most SPAs that consume such APIs use camel case for variable names and array/object keys.

Which means if an API is using snake case, for it’s keys, the front end will have to convert/alias those snake case to camel case before using them which seems like an extra step to take.

Instead of going through that, wouldn’t it be efficient to just have the API use camel casing instead of snake case?

One thing I experience and had a great impact was when my API was changed. My clients’ project was broken. So, if the API has been used, it might not be changed in a short time.

hatsushiroyuki 2021-12-15 17:45:56
Anuj 2021-12-15 17:43:39
Any ocr package for retrieving text from image

https://github.com/search?q=php+ocr
Have a trial and failure here. There’s a lot of packages to try.

GitHub
GitHub is where people build software. More than 73 million people use GitHub to discover, fork, and contribute to over 200 million projects.
Great_Ballz_Of_Fire 2021-12-15 17:47:07
hatsushiroyuki 2021-12-15 17:42:56
I agree it is more efficient if the API uses the camelCase as you said. But it depends on what language the API is written in.

I’m pretty sure it is based on the naming convention of the language. Some language tends to use camelCase and other use snake_case.

If you’re working with the back-end developer, try to communicate your uneasiness.

Thank you. It’s good to know that in a situation where I am working on both FE and BE, I am free to use camel case when sending data from the API.

hatsushiroyuki 2021-12-15 17:48:40
Great_Ballz_Of_Fire 2021-12-15 17:47:07
Thank you. It’s good to know that in a situation where I am working on both FE and BE, I am free to use camel case when sending data from the API.

You have that freedom if you manage both ends on yourself. It depends on your standard.

Great_Ballz_Of_Fire 2021-12-15 17:49:27
hatsushiroyuki 2021-12-15 17:44:38
One thing I experience and had a great impact was when my API was changed. My clients’ project was broken. So, if the API has been used, it might not be changed in a short time.

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

Great_Ballz_Of_Fire 2021-12-15 17:50:32
hatsushiroyuki 2021-12-15 17:48:40
You have that freedom if you manage both ends on yourself. It depends on your standard.

Ahhhh….got it! At first, I was thinking it was an anti-practice to use camel case since I hadn’t seen a rest API use that. Which was why I asked

|