How can i run my laravel project on my new windows?

|
cayetanohosma 2021-09-18 13:57:58
Hi guys,
I’m working in application and when I run the tests, I get the following error:

`SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (SQL: create table `users“

I’m using Laravel 8.0 and PHPUnit 9.5.0 in a dockerized environment with three containers php, mysql, and nginx. The tests are running on Sqlite on memory database.

But I’m not able to run the tests due the above error. Any idea which could be the issue?

cayetanohosma 2021-09-18 14:31:13
I suspect that the issue is because I’m using a dockerized environment and the SQLITE is not present at memory
juvenilia_xs 2021-09-18 14:41:19
Hi everyone.

Have you any idea (the best one) about implementing permissions for some routes without giving new Role to users ??

i have a designed project, needs to some changes. We don’t want to change User’s Roles.

cayetanohosma 2021-09-18 15:00:58
@juvenilia_xs Did you read the spatie/permissions docuemntation?
cayetanohosma 2021-09-18 15:01:13
It’s a great package for roles and permissions
juvenilia_xs 2021-09-18 15:11:48
cayetanohosma 2021-09-18 15:00:58
@juvenilia_xs Did you read the spatie/permissions docuemntation?

Thanks dear.
i don’t want to set new ROLE for some USERS.
so i have customers with special one ROLE called USER, and now i want to set some different accessibilities in routes.

for example a good way is define new JSON field in USERS table, that it is contains routes and 1/0 for “have”/”have not” permission to access it.

Have we any better way to do ??

cayetanohosma 2021-09-18 15:33:03
In that case you can use persmissions and a middleware in order to know if the user has, or not, access to that route
juvenilia_xs 2021-09-18 15:41:16
cayetanohosma 2021-09-18 15:33:03
In that case you can use persmissions and a middleware in order to know if the user has, or not, access to that route

“permissions” as we know it in laravel, needs “Roles” to implementation. it means we should have users with different ROLES to set some permissions for them. “permission” not working lonely.
i think JSON field is only way to do.
thank you. 🌹

cayetanohosma 2021-09-18 15:42:23
If I understood your goal, you need to restrict the access to some route to a specific user, right?
juvenilia_xs 2021-09-18 16:01:15
cayetanohosma 2021-09-18 15:42:23
If I understood your goal, you need to restrict the access to some route to a specific user, right?

exactly , “some routes to specific users”.
but it wasn’t in our project before, and we don’t want to add new role for them.

cayetanohosma 2021-09-18 16:12:31
OK, but could you add new permission to an existing role?
juvenilia_xs 2021-09-18 16:17:10
cayetanohosma 2021-09-18 16:12:31
OK, but could you add new permission to an existing role?

i have not any permissions.
just have 3 roles with 3 kind of jobs (not more).

Now i want to separate “USERS” ROLE and give some accessibilities to just some of them (not all of them and not other roles).

different permissions are for different ROLEs, not for one ROLE.

cayetanohosma 2021-09-18 16:18:38
What about to use Gates? It could be act as permissions but isn’t a permission
juvenilia_xs 2021-09-18 16:19:41
cayetanohosma 2021-09-18 16:18:38
What about to use Gates? It could be act as permissions but isn’t a permission

i’ll search and check it right now.

juvenilia_xs 2021-09-18 16:28:49
cayetanohosma 2021-09-18 16:18:38
What about to use Gates? It could be act as permissions but isn’t a permission

i think the GATES and POLICIES are for items owned by specific user. User who created post, can edit, update or … it.

not useful to me.

i want to give (edit,update,delete,reserve, …) access to some users , and doing by website admin, anytime wants.

rawabi_alammar 2021-09-18 16:42:52
How can i run my laravel project on my new windows??
Plz i need steps to do this, HELP
Mahkamov_Farru2 2021-09-18 16:46:26
rawabi_alammar 2021-09-18 16:42:52
How can i run my laravel project on my new windows??
Plz i need steps to do this, HELP

You should install localserver like xampp, OpenServer

rawabi_alammar 2021-09-18 16:47:01
Mahkamov_Farru2 2021-09-18 16:46:26
You should install localserver like xampp, OpenServer

I installed xampp

2021-09-18 18:24:09
I Have a laravel project file there is anyone expert who will help me to setup this project file on local host also on shared hosting I will pay him his charges
Maoltech 2021-09-18 18:25:48
Anybody who knows how to use telegram api and PayPal Api.
KellsLTE 2021-09-18 18:32:34
2021-09-18 18:24:09
I Have a laravel project file there is anyone expert who will help me to setup this project file on local host also on shared hosting I will pay him his charges

Have you gotten someone to help yet?

bryan_king 2021-09-18 18:35:49
Maoltech 2021-09-18 18:25:48
Anybody who knows how to use telegram api and PayPal Api.

It should be in the documentation

Maoltech 2021-09-18 18:36:41
bryan_king 2021-09-18 18:35:49
It should be in the documentation

Do you mean the platforms documentation

Maoltech 2021-09-18 18:37:38
Data output from the APIs
bryan_king 2021-09-18 18:37:46
Maoltech 2021-09-18 18:36:41
Do you mean the platforms documentation

In both PayPal and telegram api

bryan_king 2021-09-18 18:38:17
Maoltech 2021-09-18 18:37:38
Data output from the APIs

The should show example response

Maoltech 2021-09-18 18:38:31
🆗. Thanks
AMIT 2021-09-18 21:07:02
rawabi_alammar 2021-09-18 16:47:01
I installed xampp

1. Place your laravel project in htdocs folder in xampp
2. Access you application using url:
localhost/projectName/public

Allo Teacher 2021-09-18 21:32:49
laravel_discuss-94897.jpg
Laravel 8 PHP Framework Handbook in pdf
https://bit.ly/3BuhuuA
Dkhicher 2021-09-18 22:08:01
rawabi_alammar 2021-09-18 16:42:52
How can i run my laravel project on my new windows??
Plz i need steps to do this, HELP

What problem you facing ?

poppyhusk 2021-09-19 00:09:51
cayetanohosma 2021-09-18 13:57:58
Hi guys,
I’m working in application and when I run the tests, I get the following error:

`SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (SQL: create table `users“

I’m using Laravel 8.0 and PHPUnit 9.5.0 in a dockerized environment with three containers php, mysql, and nginx. The tests are running on Sqlite on memory database.

But I’m not able to run the tests due the above error. Any idea which could be the issue?

seems thay your mysql container address cannot be consumed inside laravel

poppyhusk 2021-09-19 00:10:14
rawabi_alammar 2021-09-18 16:42:52
How can i run my laravel project on my new windows??
Plz i need steps to do this, HELP

wamp, xamp, ampps, laragon, docker, etc

cayetanohosma 2021-09-19 00:11:47
@poppyhusk The issue likes to be the multiple database and the testing environment… I believe it’s under control, but I spend all day 😞
poppyhusk 2021-09-19 00:12:29
cayetanohosma 2021-09-19 00:11:47
@poppyhusk The issue likes to be the multiple database and the testing environment… I believe it’s under control, but I spend all day 😞

it happens sometimes.

cayetanohosma 2021-09-19 00:13:04
It’s crazy, I didn’t expect to deal with this kinda problems…. 😞
|