Skip to content

how i can pagenate data in laravel?

i have 6825 invoices in data base i want to pagenate 10 records per page and in blade i want links like this (Prev, 1 2 3 4 5 7 8 .. 78 (upto last) next) the code which i am using now in controller and blade i am getting only 10 records form 6825 how i can show link

Parsing SimpleXML Object data

How to get “file_url” from this data? Response can contain few objects, and how to parse it? Code that I use: Response: Please help! (don’t ask why I parsing rule34) Answer Hi You can conver it to the array and work with is easy

Create custom package with facade in Laravel 8

I am trying to develop a new Laravel package locally installed via Composer. These are my steps: I install a new Laravel application with composer create-project laravel/laravel my-application I create a new directory in the root with the following content: packages/randolf/custom-package/composer.json packag…

PHP return list as a function result

I am an absolute beginner in PHP. I have a file main.php where I have a call to a php function: I have a file navigation.php which is required in main.php, it has a small constructor to build the right structure of the navigation, it looks like this: This works completely fine for me, but I want to have some

php echo statement fails to execute

I am trying display data from mysql database from within an echo statement, but it crashes the webpage. I have tried many different ways to do the same, but it still fails every time here is the code. Look at the line where I say “this is the offending line.” As soon as I remove that line, everyth…

cant install cakephp 4 again

I have wamp64, php 7.4 and using composer I ran this from the console composer create-project –prefer-dist “cakephp/app:^4.0” myapp and composer create-project –prefer-dist cakephp/app:~4….

$_POST remains null when posting through ajax with formData

This is the form: Ajax/Javascript: php: Output: The var_dumps basically output nothing, these are the notices shown for the php file: The final scope of this is to be able to send an email with an attachment using $_FILES for the file, and $_POST for the text data. But first I need to figure out why $_POST is…