Ты два проекта запускаешь?

|
the_peace_lover 2020-04-02 18:26:54
You should save your mobile number as password at the registeration function
like…
$user->password = $request->input(‘mobile_no’);

Then at the time of login, you just check for the password match only

2020-04-02 18:27:38
the_peace_lover 2020-04-02 18:26:54
You should save your mobile number as password at the registeration function
like…
$user->password = $request->input(‘mobile_no’);

Then at the time of login, you just check for the password match only

Yup

2020-04-02 18:27:40
Got it
MuntherHalwyat 2020-04-02 18:28:04
Hello
Can anyone help me
I installed a Voyager package on my project and when but I can’t make a new admin email
MuntherHalwyat 2020-04-02 18:28:33
laravel_discuss-31868.jpg

Dev 2020-04-02 18:29:55
naveen5566 2020-04-02 18:20:29
Hi All,
I need one small help how to write laravel rest api to upload image to s3 bucket and database.
Please send me any sample link or suggestions I find I didn’t get.

Thanks,
Naveen.

https://medium.com/@sehmbimanvir/laravel-upload-files-to-amazon-s3-a17d013f53ce

This link will give you an idea to do it for REST.

Laravel Upload Files To Amazon S3Medium
What is Amazon S3 ?
naveen5566 2020-04-02 18:33:42
Dev 2020-04-02 18:29:55
https://medium.com/@sehmbimanvir/laravel-upload-files-to-amazon-s3-a17d013f53ce

This link will give you an idea to do it for REST.

Here it’s web yes need to do like API yes

Dev 2020-04-02 18:35:16
MuntherHalwyat 2020-04-02 18:28:33

php artisan voyager:admin admin@gmail.com –create -vvv

Try this command. I have added -vvv at the end of the command. This would output with describing the errors. So, you would know the reason of the error.

MuntherHalwyat 2020-04-02 18:36:24
thank you alot , I’ll try this
Dev 2020-04-02 18:37:27
naveen5566 2020-04-02 18:33:42
Here it’s web yes need to do like API yes

Yes. You need to make it for REST API. But the functionality is all same. You just need to work on the front-end part that how you pass the data to the API call and API routes file.

naveen5566 2020-04-02 18:38:35
Dev 2020-04-02 18:37:27
Yes. You need to make it for REST API. But the functionality is all same. You just need to work on the front-end part that how you pass the data to the API call and API routes file.

Okay thanks I will try like this

MuntherHalwyat 2020-04-02 18:40:10
Dev 2020-04-02 18:35:16
php artisan voyager:admin admin@gmail.com –create -vvv

Try this command. I have added -vvv at the end of the command. This would output with describing the errors. So, you would know the reason of the error.

laravel_discuss-31875.jpg
It didn’t work for me and this problem arose for me

Dev 2020-04-02 18:42:06
MuntherHalwyat 2020-04-02 18:40:10
It didn’t work for me and this problem arose for me

-vvv is just to show you full detail of the error. It shows that the error is within QuestionHelper.php at Line 126.

Dev 2020-04-02 18:43:30
Check out QuestionHelper.php for the error.
MuntherHalwyat 2020-04-02 18:43:59
ok man
Samvel Shamamyan 2020-04-02 19:28:12
У меня проблема с Laravel.
Я использую Xampp.
В нем 2 прокта, но всегда открыватся один и тот же проект( #1).
Что делать?
Fatima 2020-04-02 19:52:37
Do you have any idea how can I paginate array??
kuzmich321 2020-04-02 19:53:28
hey there!
kuzmich321 2020-04-02 19:53:37
you wanna chunk it ?
kuzmich321 2020-04-02 19:54:28
it’s gonna work
kuzmich321 2020-04-02 19:54:30
chunk(arr, size) {
const optimalSize = Math.floor(arr.length / size);
return Array.from(
{ length: Math.ceil(arr.length / optimalSize) },
(v, i) => arr.slice(i * optimalSize, i * optimalSize + optimalSize)
);
}
kuzmich321 2020-04-02 19:57:22
Samvel Shamamyan 2020-04-02 19:28:12
У меня проблема с Laravel.
Я использую Xampp.
В нем 2 прокта, но всегда открыватся один и тот же проект( #1).
Что делать?

можешь поконкретней? особенно с директориями

kuzmich321 2020-04-02 19:58:35
Fatima 2020-04-02 19:52:37
Do you have any idea how can I paginate array??

lmao i thought it’s js group lol, there is a built-in php functuon

kuzmich321 2020-04-02 19:58:53
Fatima 2020-04-02 19:52:37
Do you have any idea how can I paginate array??

https://www.php.net/manual/en/function.array-chunk.php

kuzmich321 2020-04-02 20:00:17
Fatima 2020-04-02 19:52:37
Do you have any idea how can I paginate array??

but if you wanna paginate it on laravel level you can use paginate method

Samvel Shamamyan 2020-04-02 20:01:15
kuzmich321 2020-04-02 19:57:22
можешь поконкретней? особенно с директориями

У меня есть два проекта в xampp когда я хочу открыть тот проект катори мне нужен он не открывется. Постояанно открывается другая.

Fatima 2020-04-02 20:01:26
kuzmich321 2020-04-02 20:00:17
but if you wanna paginate it on laravel level you can use paginate method

Paginate doesn’t work for array

kuzmich321 2020-04-02 20:01:57
Fatima 2020-04-02 20:01:26
Paginate doesn’t work for array

then array_chunk is the best way that i see

Fatima 2020-04-02 20:02:24
kuzmich321 2020-04-02 20:01:57
then array_chunk is the best way that i see

Ok let me try

kuzmich321 2020-04-02 20:03:04
Samvel Shamamyan 2020-04-02 20:01:15
У меня есть два проекта в xampp когда я хочу открыть тот проект катори мне нужен он не открывется. Постояанно открывается другая.

а можешь скрин скинуть ?

Samvel Shamamyan 2020-04-02 20:16:04
kuzmich321 2020-04-02 20:03:04
а можешь скрин скинуть ?

Сечас нет.
Давай так попробую.

Уменя 2 прокта обе находятся в htdocs папке!

1. Называется – Shop
2. Называется – Estate

1 проект открывал так.

В камозере….

cd htdocs
cd shop
php artisan serve

Localhost. 127.0.0.8000
Всеработает и сйчас!

Ну а 2-й проект Estate таким де методом не могу открыт!

Открыватся 1-й прок в броузере!

yabzik 2020-04-02 20:18:14
php artisan serve –port=8001
kuzmich321 2020-04-02 21:46:41
ты два проекта запускаешь ? Ярослав ответил сверху, если ты по отдельности запускаешь
Omarillo95 2020-04-02 23:58:06
one question, how make this with query builder or ORM
Omarillo95 2020-04-02 23:58:09
songs, composers_songs, interpreters_songs, genres_songs
Omarillo95 2020-04-02 23:58:25
nested tables!!!
mohittyagi99 2020-04-03 04:00:36
SQLSTATE[28000] [1045] Access denied for user ‘gogacart_movie’@’localhost’ (using password: NO) (SQL: select * from information_schema.tables where table_schema = gogacart_movieflex and table_name = migrations and table_type = ‘BASE TABLE’)

I’m getting this error! All the Time

I checked .env and database.php file as well
I’m using shared Hosting

That’s why i’m using Artisan Commands via web.php

Artisan::call(“migrate”);

mohittyagi99 2020-04-03 04:24:26
Any Reply?
TDarkCoder 2020-04-03 04:28:58
mohittyagi99 2020-04-03 04:00:36
SQLSTATE[28000] [1045] Access denied for user ‘gogacart_movie’@’localhost’ (using password: NO) (SQL: select * from information_schema.tables where table_schema = gogacart_movieflex and table_name = migrations and table_type = ‘BASE TABLE’)

I’m getting this error! All the Time

I checked .env and database.php file as well
I’m using shared Hosting

That’s why i’m using Artisan Commands via web.php

Artisan::call(“migrate”);

Database owner credentials are invalid

mohittyagi99 2020-04-03 04:29:12
They are right! I tested with CorePHP
mohittyagi99 2020-04-03 04:29:47
laravel_discuss-31914.jpg
Check Line 3 Why password field is Empty!
mohittyagi99 2020-04-03 04:29:59
But my .env file is fine! I already added Password!
TDarkCoder 2020-04-03 04:30:55
mohittyagi99 2020-04-03 04:29:47
Check Line 3 Why password field is Empty!

hm really strange

TDarkCoder 2020-04-03 04:31:04
Is it cpanel
mohittyagi99 2020-04-03 04:31:13
TDarkCoder 2020-04-03 04:31:04
Is it cpanel

Yes!

mohittyagi99 2020-04-03 04:31:17
Unfortunately!
mohittyagi99 2020-04-03 04:31:46
Is this any solution?
TDarkCoder 2020-04-03 04:32:25
Can you show me masters of database in hosting?
mohittyagi99 2020-04-03 04:32:55
TDarkCoder 2020-04-03 04:32:25
Can you show me masters of database in hosting?

Yes!

mohittyagi99 2020-04-03 04:35:14
laravel_discuss-31923.jpg

|