MuhammadMaaz MuhammadMaaz
30

i'm not able to store my image data in db.

i'm trying to store my image in data base but my image code is not executing. here is my controller code and image form public function addimages(Request $r...
Laravel
30
179
nickywan123 nickywan123
25

How do I send put method on an anchor tag?

I want to use destroy method on laravel to delete an existing item for the user. Normally, one would use a route::put or patch along with the form to mask the submit button...
Laravel
25
190
nickywan123 nickywan123
25

Deleting item not outputting the correct id

So I have a list of wishlist items where each item has it's own unique product id. I output it in my view like below: wishlist.blade.php: <table c...
Laravel
25
186
anonymouschatbox anonymouschatbox
20

Property [filename] does not exist on this collection instance.

I am trying to filter my http request by using middleware. I want to check if the "friends_id" that i am getting from http request and "my_id" that I am...
Laravel
20
191
tvvocold tvvocold
17

Laravel VerifyCsrfToken Exception not working

I'm trying to exclude all requests on an endpoint which I call mydomain.com/code so I do like this in the VerifyCsrfToken.php file. <?php namespace App\H...
Laravel
17
195
jgravois jgravois
16

I am coded into a corner and need help

I have apparently turned 3rd grade math into Calculus and now I can't see the way home and need a bit of help -- This is a screenshot of where I am --...
Laravel
16
480
trifek trifek
15

Cache in Laravel

Hi, I am beginner in Laravel. In my project I use repository pattern and Laravel 7. I have this controller: class PageController extends Controller {...
Laravel
15
349
ajsmith_codes ajsmith_codes
15

Need help with logic and permissions.

I have an app where I am using Spatie Permissions. If you're not familiar with it, it is where you can assign Permissions and Roles. They recommend you assign permissions t...
Laravel
15
105
sasikala sasikala
14

While installing laravel composer

Hello, When i tried to install laravel composer, while using the command "laravel new new_laravel_app" i got error like this " The Zip PHP extension is not i...
Laravel
14
415
chrisgrim chrisgrim
14

Is there a way to see what Laravel is expecting for the magic behind the scenes?

I have two models, Event and Interactive Level. Event belongs to Interactive Level and Interactive Level can have many events. In my migration I have Schema...
Laravel
14
337
SmokeTM SmokeTM
14

How to play vimeo videos with videojs player

How is laracasts using videojs player with its vimeo videos? Is laracasts using a package? Cant find something on the official video js website....
Laravel
14
391
nickywan123 nickywan123
13

chunk method not working for blade

I have to display my results as chunks of five in blade and this is my code: <?php $iterationNo = 0; ?&...
Laravel
13
104
trifek trifek
12

Error in Laravel Too few arguments to function

Hi, I am beginner in php and Laravel. I use in my project Laravel 7. I have repository pattern in my project with cache. PageServiceProvider: public f...
Laravel
12
307
nickywan123 nickywan123
12

how to take first 5 items in a collection and the next 5 for the next pages?

I have a PDF that outputs number of items bought in a table. The table can only output 5 items as the sixth item will overlap the alignment so I decided to make the next pa...
Laravel
12
107
nickywan123 nickywan123
12

chunk does not display the correct number of items

I want to output 5 items on my table using chunk. Code: @foreach($purchase->orders as $order) @foreach($order->items-&...
Laravel
12
112
esaeng esaeng
12

I'm getting this, PARSE ERROR syntax error, unexpected 'use' (T_USE), expecting '{' ,on line 3

<?php namespace App\Http\Controllers\ImageController use App\Http\Controllers\Controller; use App\Image; use App\Traits\ImageUpload; use Illuminate\Http\Request;...
Laravel
12
119
david19 david19
11

Use 1 Facade for all functions

Hello Team, I created a facade for return my views. Because i use a Theme Switcher in the env.file. Now i have idea. I can use only 1 Facade for all functions...
Laravel
11
93
t0berius t0berius
11

namespace question

Using the following structure: App\Constants\OrderStatus.php namespace App\Constants; final class OrderStatusGroups { .... } Ap...
General
11
102
Fluber Fluber
11

Run job every second Laravel

I have created a queue job which need to run every second. How can I do that ? So i have created a job using artisan command, but the job is not run every second. In...
Laravel
11
87
ThinkingMan ThinkingMan
11

Fetch data from remote database and add/update to local database

Background: My app has a customers table that I want to "sync" with customer records from a remote database. The remote database contains customer records...
Eloquent
11
128
Create a New Discussion Button