There is a italian developer of Laravel?

|
vishalprajapati1993 2021-02-11 21:21:44
Please share with demo
Bhavyakumar Panchotiya 2021-02-11 22:18:49
laravel_discuss-69910.jpg

Bhavyakumar Panchotiya 2021-02-11 22:18:49
laravel_discuss-69909.jpg
whenever i am click on the delete link that time show this error (page not found) how to solve this? plz help me
DesolatorMagno 2021-02-11 22:19:37
There are a lot of wrong thing in those 2 images.
DesolatorMagno 2021-02-11 22:23:45
* Get: It should only be use to request data from the app, never to make a action that end in database changes.
* Url: Don’t writte the url like that, you can use helpers for that, you can use url() or route()
* Route: The route should give info about what resource you are acceding and use the http verbs, for example
get : user/1 you get data of the user with id 1
delete: user/1 you delete the user with id 1 from database.
Bhavyakumar Panchotiya 2021-02-11 22:27:57
ok Boss Thank You 🙂
DesolatorMagno 2021-02-11 22:31:57
And btw, you have a ‘.’ at the start of the second route and $ in the route.

Try something like ‘delete/{id}’

DesolatorMagno 2021-02-11 22:32:21
https://laravel.com/docs/8.x/routing#required-parameters
Don’t be afraid of the documentation, it have a lot of info.
❤️ ᴍɪɢʜᴛⓨ 🌹 2021-02-11 22:42:05
Please help me how to redirect user different role by role not by role_id
Techzsmart 2021-02-11 22:42:06
https://www.facebook.com/Bilal.CyberMafia/?ti=as

Log in to FacebookFacebook
Log in to Facebook to start sharing and connecting with your friends, family and people you know.
DesolatorMagno 2021-02-11 22:45:12
Your question is very vague, but you can try use permission, policy and gates
natghi2010 2021-02-11 23:46:38
❤️ ᴍɪɢʜᴛⓨ 🌹 2021-02-11 22:42:05
Please help me how to redirect user different role by role not by role_id

role_id and role is the same thing

sbruder 2021-02-12 00:49:25
what do you guys use to do flash messages? laracasts/flash, spatie/laravel-flash or something hand-coded?
2021-02-12 01:30:23
Hi Hi
2021-02-12 04:13:25
laravel_discuss-69927.jpg

hddhagai 2021-02-12 07:32:28
Batu157 2021-02-11 11:22:46
You should learn the basics finding in Google imo.
You can write queries using: DB::raw(“select *……”)

Am new to laravel as well. How to do without raw SQL query

DukeKwaku 2021-02-12 11:44:46
DesolatorMagno 2021-02-09 17:38:02
But beware, that you don’t need to be logged to make those actions, so it can end in errors and it make testing harder.

how do i set logName without using model event

2021-02-12 12:07:23
krishu_7 2021-02-11 15:43:02
Please check the migration file

Why do you have unsignedbigInteger for sub_services? or were you able to solve the issue

mynameisbrad 2021-02-12 12:15:45
Hello guys, I’m having problems with my commands that are in databse queue. They are still failing and even when I update them it seems that the server cached them and they are not actually updated. Do you know how to refresh the cache or what is happening?
w3lifer 2021-02-12 12:17:17
mynameisbrad 2021-02-12 12:15:45
Hello guys, I’m having problems with my commands that are in databse queue. They are still failing and even when I update them it seems that the server cached them and they are not actually updated. Do you know how to refresh the cache or what is happening?

Restart queue daemon

phonefastersshop 2021-02-12 12:29:15
Hi
There is a italian developer of Laravel?
phonefastersshop 2021-02-12 12:31:11
laravel_discuss-69943.jpg

phonefastersshop 2021-02-12 12:31:23
Or is there someone who has already worked with this app?
Harry_0 2021-02-12 12:40:21
Hi guys Is There a way to flatten a parent to a nested eloquent relation
Harry_0 2021-02-12 12:40:36
my dataset
Harry_0 2021-02-12 12:40:50
[id] => 120
[issues_batch_no] => 10012
[car] => 4
[job_no] => AVZ-18-009
[part] => 274
[serial_no] => N/A
[quantity] => 1
[bin] => 276
[description] => bearings
[issued_by] => 4
[received_by] => 16
[batch_status] => 1
[url] => issue/parts/post
[created_at] => 2020-11-04 10:23:05
[updated_at] => 2020-11-04 10:23:05
[creator] => Array
(
[id] => 4
[name] => Stores
)
[receiver] => Array
(
[id] => 16
[name] => Simon
)

[cars] => Array
(
[id] => 4
[Make] => Subaru
[Model] => forester STI
)

[parts] => Array
(
[id] => 274
[part_no] => 237
[alt_part_no] => 0
[batch_no] => 1806-32217-1
[batch] => 19003
[quantity] => 0
[creator] => 4
[description] => bearings
[cost_unit] => 0.15
[bin] => 276
[receive_remarks] =>
[shelflife] => 2
[expiry_date] => 2021-01-14 00:00:00
[url] => receive/parts/post
[created_at] => 2020-09-23 06:02:47
[updated_at] => 2021-01-23 19:29:07
[part_number] => Array
(
[id] => 237
[part_no] => AS3209-016
)

)

Harry_0 2021-02-12 12:41:07
my query
Harry_0 2021-02-12 12:41:38
$query = issue::query();
$issued_parts = $query->orderBy(‘id’, ‘desc’)
->with(‘creator:id,name’)
->with(‘receiver:id,name’)
->with([‘cars:id,make, model)
// ->with(‘parts.part_number:id,part_no’)
->with([‘parts.part_number’=>function($pp) {
$pp->select(‘id’,’part_no’);
} ])
->get();
Harry_0 2021-02-12 12:41:57
third “with” includes all items in parts where as id like to be like
Harry_0 2021-02-12 12:42:07
[parts] => Array
(
[id] => 274
[part_no] => 237
[part_number] => Array
(
[id] => 237
[part_no] => AS3209-016
)

)

mynameisbrad 2021-02-12 12:42:09
w3lifer 2021-02-12 12:17:17
Restart queue daemon

@w3lifer I tried, but for some reason it still does that. Forcefully killed it, and it restarted itself, because it is in cron job.

w3lifer 2021-02-12 12:46:14
mynameisbrad 2021-02-12 12:42:09
@w3lifer I tried, but for some reason it still does that. Forcefully killed it, and it restarted itself, because it is in cron job.

Maybe supervisor starts daemon …

alancbhn 2021-02-12 13:42:44
Hi guy.
alancbhn 2021-02-12 13:43:18
Is someone here that can help guiding me to deploy an app to Google Cloud? c:
alancbhn 2021-02-12 13:43:31
English or Spanish 🙂
|