← prev | next →
GistOf 2021-01-09 18:02:40
Form::select() comes from the package LaravelCollective/html
Ritu Kumar 2021-01-09 18:05:38
But when i use url in jquery ajax it return 404 error
Ritu Kumar 2021-01-09 18:07:04
How can i use url and route
GistOf 2021-01-09 18:11:55
If you’re going to create a route for it, then create a method in a controller or return the array from the route’s closure
Ritu Kumar 2021-01-09 18:45:51
This is my controller—-
public function getContestslist($id){
$contest_winner = DB::table(“contest”)->where(‘contest_id’, ‘=’, $id)->get();
return Response()->json($contest_winner);
}
This is my Route——
Route::get(‘/getContestslist/{id}’, ‘ContestwinnersController@getContestslist’);
This is my jquery—–
<script type=”text/javascript”>
$(document).ready(function(){
$(document).on(‘change’,’.game’,function(){
// console.log(“hmm its change”);
var games_id=$(this).val();
// console.log(game_id);
var div=$(this).parent();
var op=” “;
$.ajax({
type:’get’,
url:'{!!URL::to(‘getContestslist’)!!}’,
data:{‘id’:games_id},
success:function(data){
console.log(‘success’);
console.log(data);
console.log(data.length);
op+='<option value=”0″ selected disabled>chose contest</option>’;
console.log(op);
for(var i=0;i<data.length;i++){
// console.log(data[i].contest);
op+='<option value=”‘+data[i].id+'”>’+data[i].contest+'</option>’;
// console.log(op);
}
div.find(‘.contest’).html(” “);
div.find(‘.contest’).append(op);
// console.log(op);
},
error:function(){
Ritu Kumar 2021-01-09 18:46:30
But it’s not working
DesolatorMagno 2021-01-09 19:28:38
Change url to route helper and see in the documentation of how to use it with values.
hypernxf 2021-01-09 19:41:47
GistOf 2021-01-09 17:16:15
We need the scaffolding. It should be practical, usable and consistent with what Laravel has been till recently
Scaffolding of what? The basic Laravel version is quite consistent with what laravel always have been
The Opinionated frameworks choices of vue,tailwind,livewire,interia.js blah blah are all being extracted out.
If you just Install Laravel fresh there isn’t even all these frameworks in it. But if you choose to want to use it, then you can install.
I think that’s quite consistent with the laravel experience
GistOf 2021-01-09 20:26:20
hypernxf 2021-01-09 19:41:47
Scaffolding of what? The basic Laravel version is quite consistent with what laravel always have been
The Opinionated frameworks choices of vue,tailwind,livewire,interia.js blah blah are all being extracted out.
If you just Install Laravel fresh there isn’t even all these frameworks in it. But if you choose to want to use it, then you can install.
I think that’s quite consistent with the laravel experience
I don’t agree that it’s consistent, but I’m tired of going in circles with inconsiderate people. Apparently, it doesn’t matter that some people want the new conveniences, but don’t want Tailwind
GistOf 2021-01-09 20:28:44
People said the new opinionated approach is difficult for newcomers, now most developers are forcing themselves to be okay with it for fear of being viewed as amateurs
GistOf 2021-01-09 20:29:05
Impostor’s syndrome
GistOf 2021-01-09 20:31:43
Most of you people pretending to like Tailwind now are only using it because Laravel steered you in that direction. Embracing everything as long as it’s packaged a new and cool
GistOf 2021-01-09 20:31:57
Like sheep
hypernxf 2021-01-09 20:45:03
I see so you are upset laravel took out bootstrap in replacement with tailwind
hypernxf 2021-01-09 20:45:14
Ok fair enough
hypernxf 2021-01-09 20:46:22
Good night!
GistOf 2021-01-09 20:49:01
hypernxf 2021-01-09 20:45:03
I see so you are upset laravel took out bootstrap in replacement with tailwind
Precisely!
hypernxf 2021-01-09 20:49:55
Yep for that I have nothing to say 🙂 understand tailwind is not for everyone
hypernxf 2021-01-09 20:50:18
Guess I’m just glad I happen to like tailwind alot to use it in all my project haha
Vinay Jana 2021-01-09 20:51:19
Bootstrap/tailwind they have their own pros and cons don’t go over useless discussions
GistOf 2021-01-09 20:51:30
That’s a balanced way of looking at it
2021-01-09 20:51:48
Anyone of you all stop this
GistOf 2021-01-09 20:52:15
Vinay Jana 2021-01-09 20:51:19
Bootstrap/tailwind they have their own pros and cons don’t go over useless discussions
Your contribution is useless
Vinay Jana 2021-01-09 20:52:23
2021-01-09 20:51:48
Anyone of you all stop this
Yes that’s what iam saying too bto
2021-01-09 20:52:35
Please stop it.
If anyone of you stop then other will automatically stop.
GistOf 2021-01-09 20:52:56
2021-01-09 20:51:48
Anyone of you all stop this
Why? Because you said so?
Vinay Jana 2021-01-09 20:53:07
2021-01-09 20:52:35
Please stop it.
If anyone of you stop then other will automatically stop.
Kk
GistOf 2021-01-09 20:54:10
2021-01-09 20:52:35
Please stop it.
If anyone of you stop then other will automatically stop.
If you have nothing to say on the topic why don’t you just shut up?
hypernxf 2021-01-09 20:54:42
Haha just take it as a general discussion don’t have to be so serious about it. There’s no right or wrong here. Just a matter of preference. And everyone is diff.
hypernxf 2021-01-09 20:55:05
Let’s just respect each other preference and no names calling 🙂
hypernxf 2021-01-09 20:55:16
We can always learn to agree to disagree
Vinay Jana 2021-01-09 20:55:47
GistOf 2021-01-09 20:54:10
If you have nothing to say on the topic why don’t you just shut up?
No offense just asking which is best css framework in your point of view
GistOf 2021-01-09 20:56:34
hypernxf 2021-01-09 20:54:42
Haha just take it as a general discussion don’t have to be so serious about it. There’s no right or wrong here. Just a matter of preference. And everyone is diff.
That’s how it should be, but people seem to think there’s something wrong with wanting Bootstrap with the new additions
GistOf 2021-01-09 20:57:17
Vinay Jana 2021-01-09 20:55:47
No offense just asking which is best css framework in your point of view
It’s not about which one is best. You’re missing the point
hypernxf 2021-01-09 20:57:52
Lol I don’t see anything wrong with wanting bootstrap. Just like how laravel encourage everyone to use axios instead of jQuery
← prev | next →