Can anyone explain what is the meaning of this?

|
DesolatorMagno 2021-02-17 19:36:13
Billa_Bongg 2021-02-17 10:23:09
Hallo..When I visit any routes on my laravel app am getting the following:
uksort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero

On my local machine the routes work perfect and I dont have a problem.The only difference is that on my local machine the php version is 7.4.2 while on the server its php 8…Can that be the issue?? as I cannot access any of my routes

That’s a really big difference.

SyedUmairCodes 2021-02-17 21:04:28
Does anyone have a sample code of a user subscription system in php
dheerlalit 2021-02-17 21:39:19
Any recommendations on laraval code for an auction website?
shaildark 2021-02-17 21:46:55
I have seen it at many places in laravel code
methodname(arguments)[1];
can anyone explain what is the meaning of this?
method is called, arguments are passed but what is the meaning of using [ ] right after calling method and also passing index number
hypernxf 2021-02-17 21:52:08
[] represents an array position
iya30n 2021-02-17 21:52:27
shaildark 2021-02-17 21:46:55
I have seen it at many places in laravel code
methodname(arguments)[1];
can anyone explain what is the meaning of this?
method is called, arguments are passed but what is the meaning of using [ ] right after calling method and also passing index number

when a method returns array
and you want to get specific index of the result

you’ll use this syntax

hypernxf 2021-02-17 21:52:59
its the same as

$result = methodname(arguement1);
$result[1];

rootkings 2021-02-17 23:38:09
Hey guys, i have a rest api(json) how can i get the last 20 items? Without end function?
nazmulpcc 2021-02-17 23:39:25
rootkings 2021-02-17 23:38:09
Hey guys, i have a rest api(json) how can i get the last 20 items? Without end function?

from database?

rootkings 2021-02-17 23:46:09
nazmulpcc 2021-02-17 23:39:25
from database?

No, restfull api its mean json data

nazmulpcc 2021-02-17 23:51:53
so your rest api gives you some items, in an array, and you want only the last 20 items from that array?
rootkings 2021-02-18 00:02:11
nazmulpcc 2021-02-17 23:51:53
so your rest api gives you some items, in an array, and you want only the last 20 items from that array?

Yes

natghi2010 2021-02-18 00:03:42
rootkings 2021-02-18 00:02:11
Yes

array slice sir

M.A 2021-02-18 00:26:07
rootkings 2021-02-17 23:38:09
Hey guys, i have a rest api(json) how can i get the last 20 items? Without end function?

array_slice($array,0,20)

Yasser 2021-02-18 03:01:28
Jomitz 2021-02-16 11:05:55
setlocle spelling is wrong its setlocale

Thank you so much

Yashwant Tambe 2021-02-18 07:26:53
I have 40+ opening in laravel.. exp 1-2 years.. if any one interested message me separately
Sandhya M 2021-02-18 08:30:37
i want to create this home page in laravel. I created project from command prompt . Can i directly create home.blade,php in resources/views or i have to create any other file .
Prem Soni 2021-02-18 08:31:04
no you can create a blade for it in views
Prem Soni 2021-02-18 08:31:25
create a blade in viwe folder
Sandhya M 2021-02-18 08:31:34
laravel_discuss-70673.jpg
I just want to display this page
Prem Soni 2021-02-18 08:31:36
home.blade.php
Prem Soni 2021-02-18 08:31:47
create this
Prem Soni 2021-02-18 08:31:58
and put your code in this
Sandhya M 2021-02-18 08:32:16
okk
Sandhya M 2021-02-18 09:18:53
where i have to add css,js file to display UI
Jomitz 2021-02-18 09:29:59
Sandhya M 2021-02-18 09:18:53
where i have to add css,js file to display UI

add css files as link in the header and all the js files to the footer section and include both o these file in the layout section thats it your done

Kapil Sharma 2021-02-18 11:19:36
laravel_discuss-70685.jpg

Kapil Sharma 2021-02-18 11:19:47
I need data in this type
Kapil Sharma 2021-02-18 11:20:03
laravel_discuss-70687.jpg

Kapil Sharma 2021-02-18 11:20:15
Getting data in this type
Kapil Sharma 2021-02-18 11:20:41
laravel_discuss-70689.jpg

Kapil Sharma 2021-02-18 11:20:55
Resource file
Elnatal 2021-02-18 12:14:56
return response()->json([“musicList” => $musicList]);
Kapil Sharma 2021-02-18 12:33:05
And in songsection::collection i am getting array of data but i need only id of that section without array newbie in this please help
noneshort 2021-02-18 12:43:33
#Barada
Visual tools for Laravel artisans.
https://barada.miridoo.com

#Laravel #100DaysOfCode #DbDesinger

Advanced Visual Tools For Web ArtisansBarada
Stop wasting time building your project, Build your ERD with our tools and export a code base for laravel framework or SQL Script
|