When do I need use return json and when return view or redirect in controller function?

|
israa2912 2020-09-24 09:14:56
I’m new to Laravel
When do I need use return json and when return view or redirect in controller function ? I have already html css js of the interfaces and it just website not application
2020-09-24 09:30:11
Good morning, anyone available for a job? I need to copy data from an api to a laravel panel
Shijinsubramanniam 2020-09-24 09:38:39
Guiz, i want a variable from one blade to another blade
Shijinsubramanniam 2020-09-24 09:38:51
Anybody please help
ibrahimsn98 2020-09-24 09:39:47
Hello, what is the best way to communicate between laravel and go in docker?
jefridf 2020-09-24 09:54:54
laravel_discuss-52223.jpg
can anyone help? I want to create a null field on my form, I’ve changed it to nullable but the form still required that field
jefridf 2020-09-24 09:54:55
laravel_discuss-52225.jpg

jefridf 2020-09-24 09:54:55
laravel_discuss-52224.jpg

ddiskandar 2020-09-24 10:07:17
jefridf 2020-09-24 09:54:55

The field is set required on validation controllers

ddiskandar 2020-09-24 10:07:35
Set did not required on validation for the field
Midelman 2020-09-24 10:30:27
Ok
Midelman 2020-09-24 10:42:19
i am developing a platform for company with laravel and i would like create automatically a company database in mysql when a company is create. Sorry if my English is not perfect.
Midelman 2020-09-24 10:44:25
Any idea?
sobirjonovs 2020-09-24 10:45:53
Midelman 2020-09-24 10:42:19
i am developing a platform for company with laravel and i would like create automatically a company database in mysql when a company is create. Sorry if my English is not perfect.

You should learn eloquent model

Midelman 2020-09-24 10:47:02
sobirjonovs 2020-09-24 10:45:53
You should learn eloquent model

Ok

2020-09-24 10:55:58
hi every body
my friends I need help
i use a package laravel by name “yajra/laravel-datatables-oracle”: “~7.0”
this packages used for get information ajax and on table with jquery datatables
any way this is my Function( this function sen information ajax) :
2020-09-24 10:56:14
laravel_discuss-52241.jpg

2020-09-24 10:57:37
i need such a function :
->filter(function(Word $word){ return $word->details()->state == 1;}) //*********i,m want like here
Of course, this does not work
but i,m mean like this ?
2020-09-24 10:58:44
Does anyone have an opinion?
2020-09-24 11:02:44
and other questions
how can i do pulishing views(notice views ) fort his packages :
badralwattar 2020-09-24 11:13:26
israa2912 2020-09-24 09:14:56
I’m new to Laravel
When do I need use return json and when return view or redirect in controller function ? I have already html css js of the interfaces and it just website not application

When you make API calls or axios from Vuejs
That will not refresh your web page

Here is a video about APIs

Laravel Tutorial – Building API, Testing it using Postman & Ajax https://youtu.be/OuJB4TaI6G8

Laravel Tutorial – Building API, Testing it using Postman & AjaxYouTube
We will build API using Laravel from the beginning until the end with a brief of explanation on a whiteboard. and also we will test it using postman and Ajax.

Laravel course on my channel:

Documentation:
https://laravel.com/docs/7.x/eloquent-relationships

####################
CHAPTERS IN THIS VIDEO!
####################

0:00 – Intro
01:14 – Explanation
06:15 – Building API using Laravel
13:15 – Postman testing
23:57 – Ajax testing

—– Social —–
Instagram : codebrain99 | https://www.instagram.com/codebrain99/
Twitter : codebrain99 | https://twitter.com/CodeBrain99

#laravel #php #framework #web

natghi2010 2020-09-24 11:24:06
Is there a way to make a datatable from laravel without using database queries?
natghi2010 2020-09-24 11:24:16
I just have an array
GistOf 2020-09-24 11:50:04
HS Surya 2020-09-23 13:56:15
But when I deploy this on GoDaddy, it does not support samba server configuration

Are you kidding me? You expected this on a shared hosting package?

skys215 2020-09-24 12:03:44
natghi2010 2020-09-24 11:24:06
Is there a way to make a datatable from laravel without using database queries?

Its possible, read the datatable doc

natghi2010 2020-09-24 12:04:03
skys215 2020-09-24 12:03:44
Its possible, read the datatable doc

yeah I just found it thanks

2020-09-24 12:42:43
Looking for a senior Fullstack developer to join a remote role-please let meknow if interested
parmonov98 2020-09-24 15:32:55
Who has worked with these frameworks? bagisto vs aimeos
I wanna know, which one is easy to customize? and learn?
ibrahimsn98 2020-09-24 15:44:32
Hi, does lumen use the same orm with the laravel? Object relations etc.
YashGhantala 2020-09-24 16:23:31
ibrahimsn98 2020-09-24 15:44:32
Hi, does lumen use the same orm with the laravel? Object relations etc.

U have to Explicitly enable Eloquent in Lumen

YashGhantala 2020-09-24 16:24:28
YashGhantala 2020-09-24 16:23:31
U have to Explicitly enable Eloquent in Lumen

Just go through Lumen Documentation and you get it all

HS Surya 2020-09-24 19:09:36
ushavm.g149401 sent: “Greetings Kanchan Prakash Barai (GSTIN: 27ASVPB7537J1Z5)! Last date for filing your GSTR3B monthly return for August has passed. File your return today and save money by minimizing late fee and penalty. Please ignore this message, if GSTR3B already filed.”
2020-09-24 19:23:27
hello gues please check eror this
2020-09-24 19:23:52
laravel_discuss-52269.jpg

H_Bakhtar 2020-09-24 20:28:35
how to fix this Error in created hook (Promise/async): “TypeError: Cannot read property ‘data’ of undefined”
2020-09-24 20:42:23
Cannot read property ‘data’ of undefined
2020-09-24 20:42:45
write this in google search you mean
DesolatorMagno 2020-09-24 20:51:03
https://lmgtfy.app/?q=Cannot+read+property+%27data%27+of+undefined
2020-09-24 21:02:21
what this
Jadidi_82 2020-09-24 21:16:21
laravel_discuss-52275.jpg
hello guys. I dont know why today with making any controller I have this error
simon_an 2020-09-24 21:19:33
Laravel what version?
2020-09-24 21:21:05
v 7
Jadidi_82 2020-09-24 21:21:53
I think it would be 7
niyazvpp 2020-09-24 21:22:11
Jadidi_82 2020-09-24 21:16:21
hello guys. I dont know why today with making any controller I have this error

Check if there is any error in controller
Also
Try to recache

simon_an 2020-09-24 21:25:43
Jadidi_82 2020-09-24 21:16:21
hello guys. I dont know why today with making any controller I have this error

Did you create it as FirstController or as firstController? Maybe spelling mistakes?

Jadidi_82 2020-09-24 21:26:16
firstController
Jadidi_82 2020-09-24 21:26:46
simon_an 2020-09-24 21:25:43
Did you create it as FirstController or as firstController? Maybe spelling mistakes?

no everything is ok

AbhishekGupta_9 2020-09-24 21:29:39
Pls help me
AbhishekGupta_9 2020-09-24 21:30:04
I am unable to implement remember me functionality
AbhishekGupta_9 2020-09-24 21:30:42
I am passing the second parameter in attempt for remember
|