How can I retrieve latest item by groupBy in laravel query builder?

|
2020-01-18 22:12:50
Add the followings:

In header:
<link rel=”stylesheet” type=”text/css” href=”{{ asset(‘bootstrap-toggle.css’) }}”>

<script type=”text/javascript” src=”{{ asset(‘bootstrap-toggle.js’) }}”></script>

Fatima 2020-01-18 22:13:13
laravel_discuss-24734.jpg

Fatima 2020-01-18 22:13:37
2020-01-18 22:12:50
Add the followings:

In header:
<link rel=”stylesheet” type=”text/css” href=”{{ asset(‘bootstrap-toggle.css’) }}”>

<script type=”text/javascript” src=”{{ asset(‘bootstrap-toggle.js’) }}”></script>

I dont have these files🤷‍♀

2020-01-18 22:14:09
Fatima 2020-01-18 22:13:37
I dont have these files🤷‍♀

Aren’t u using https://www.bootstraptoggle.com/?

Bootstrap ToggleBootstraptoggle
Bootstrap Toggle is a highly flexible Bootstrap plugin that converts checkboxes into toggles.
Fatima 2020-01-18 22:14:28
2020-01-18 22:14:09
Aren’t u using https://www.bootstraptoggle.com/?

No

Fatima 2020-01-18 22:14:46
Just the bootstrap.min.js
2020-01-18 22:14:55
Fatima 2020-01-18 22:09:53
Does any body have any idea why my bootstrap js doesn’t work???? My toggle not working😢

You said toggle. I don’t know such a thing in Bootstrap 🤔

Fatima 2020-01-18 22:15:18
It works correctly when its not in laravel
Fatima 2020-01-18 22:15:28
2020-01-18 22:14:55
You said toggle. I don’t know such a thing in Bootstrap 🤔

Bootstrap toggle I meant

2020-01-18 22:16:27
Fatima 2020-01-18 22:15:18
It works correctly when its not in laravel

laravel_discuss-24743.jpg
We call slide buttons toggle buttons. Something like this.

2020-01-18 22:16:47
Fatima 2020-01-18 22:15:18
It works correctly when its not in laravel

I didn’t understand anything! The others will help you anyways lol

Fatima 2020-01-18 22:17:08
2020-01-18 22:16:47
I didn’t understand anything! The others will help you anyways lol

Thanks🌹

2020-01-18 22:18:03
Fatima 2020-01-18 22:17:08
Thanks🌹

yw.

Laravel isn’t a magical thing. It works like your ordinary HTML files. Diagnose the problem by analyzing the generated source code. F12

You may have missed a point. By the way, be careful about caches php artisan optmize:clear

s_salehi_nj 2020-01-18 22:22:43
in my job i check an int value with current time but this dont work anymore after migrating to new server
->where(‘start_hour’, date(‘H’)) ->where(‘start_minute’, date(‘i’))
this part of code dont work form 00 to 10 am
my ‘start_hour’ is int like ‘0’
any sugestion
2020-01-18 22:24:35
s_salehi_nj 2020-01-18 22:22:43
in my job i check an int value with current time but this dont work anymore after migrating to new server
->where(‘start_hour’, date(‘H’)) ->where(‘start_minute’, date(‘i’))
this part of code dont work form 00 to 10 am
my ‘start_hour’ is int like ‘0’
any sugestion

What do you want, and what does it return?
First of all, check the records on your database tables. It’s just a simple where condition. I has to work correctly.

^_* 2020-01-18 22:31:03
laravel_discuss-24749.jpg

SRL_27 2020-01-19 00:49:11
deco_O 2019-11-25 17:29:02
It works perfectly on my local environment but upon hosting i get the above error

Are your hosting support laravel ?

MatPk 2020-01-19 01:00:37
Rip jim parry. I just heard that
2020-01-19 04:27:17
deco_O 2019-11-25 17:29:02
It works perfectly on my local environment but upon hosting i get the above error

You need to install or enable a php extension or module on your server. Add / uncomment extension=php_fileinfo.dll in your php.ini file.

Fatima 2020-01-19 11:39:34
laravel_discuss-24761.jpg
Why my user doesn’t update??
hamletayvazyan 2020-01-19 11:42:33
Fatima 2020-01-19 11:39:34
Why my user doesn’t update??

check your model if there exists

protected $guarded = [];
or
protected $fillable = [
‘fullname’……//all fields you need
]

Fatima 2020-01-19 11:45:12
hamletayvazyan 2020-01-19 11:42:33
check your model if there exists

protected $guarded = [];
or
protected $fillable = [
‘fullname’……//all fields you need
]

It worked thanks

hamletayvazyan 2020-01-19 11:45:49
Fatima 2020-01-19 11:45:12
It worked thanks

👍🏼nice

2020-01-19 11:49:20
Hi Guys
How can I retrieve latest item by groupBy in laravel query builder ?
in my source when im using groupBy , the firsts item got
hamletayvazyan 2020-01-19 11:50:32
2020-01-19 11:49:20
Hi Guys
How can I retrieve latest item by groupBy in laravel query builder ?
in my source when im using groupBy , the firsts item got

just try to orderby DESC

2020-01-19 11:50:51
not working fine
2020-01-19 11:52:29
laravel_discuss-24769.jpg

2020-01-19 11:52:32
here is my all data
2020-01-19 11:52:52
i wanna get last uniqeu items by product
hamletayvazyan 2020-01-19 11:53:11
just one item?
behindfactss 2020-01-19 11:59:04
arsangamal 2020-01-18 19:35:29
Check that the database you entered in the .env file is created

It seems that in your .env file the DB_NAME=blog
And you don’t actually have blog database

laravel_discuss-24773.jpg
help me😅

arsangamal 2020-01-19 12:01:04
behindfactss 2020-01-19 11:59:04
help me😅

You seem to be deploying your app on shared hosting, right ?

behindfactss 2020-01-19 12:01:12
yes
arsangamal 2020-01-19 12:07:32
Try to create the symlink programmatically inside the app

First clear the storage folder in your public folder and try running

php artisan storage:link

If the same error happens try to run it programmatically fron your app but be carefull

An example :
Route::get(‘/foo’, function () {
Artisan::call(‘storage:link’);
});

behindfactss 2020-01-19 12:08:37
laravel_discuss-24778.jpg

behindfactss 2020-01-19 12:11:09
behindfactss 2020-01-19 12:08:37

like this we want to create manually its correct??

behindfactss 2020-01-19 12:13:09
in which location i can upload that file in ftp
arsangamal 2020-01-19 12:13:30
behindfactss 2020-01-19 12:13:09
in which location i can upload that file in ftp

Yess

arsangamal 2020-01-19 12:13:52
In the laravel app root folder
behindfactss 2020-01-19 12:14:13
example ??
arsangamal 2020-01-19 12:14:24
And run it using

php createsymlink.php

arsangamal 2020-01-19 12:15:21
Upload it to /home/u9313131674/laravel/
behindfactss 2020-01-19 12:17:36
arsangamal 2020-01-19 12:14:24
And run it using

php createsymlink.php

ok

behindfactss 2020-01-19 12:21:02
laravel_discuss-24788.jpg
Its Show Error?
2020-01-19 12:25:59
hi guys i would like to know how we do confirmation email messages using query builder.
skys215 2020-01-19 14:27:45
Is this your channel?
skys215 2020-01-19 14:31:21
You were willing to discuss, but what you created is a channel, which subscribers can’t send message to it. If you want to discuss, you need to create a group, not channel
skys215 2020-01-19 14:31:22
If no one wants to discuss anything 😅 what is the use of channel .. reading msgs not replying at all
skys215 2020-01-19 14:32:29
laravel_discuss-24795.jpg
There’s no way to reply you in the channel
skys215 2020-01-19 14:35:32
Create a group, not channel
|