Skyles Skyles
5

About Routing

Quick question: When we define our routes in web.php, let's say to a threads page, we use "/threads". But if I do the same thing in a view blade html in a...
Flerex Flerex
16

How to initialize a class in its constructor with session data, while being able to inject it in a controller's constructor

I am developing a site that allows to save a visitor's preferences, whether they're logged in or viewing the site as a guest. To make things easier,...
Laravel
16
95
sshateri sshateri
3

Route::get vs Route::any

im trying to understand the difference between Route::get and Route::any but was not able to understand it fully after reading the Laravel documentation. could you guys exp...
princeoo7 princeoo7
5

Update images of image gallery in laravel

i have created a image gallery for testing purpose and creating one is working, only issue is in update. i know here somewhere my i have missed something and not able to pr...
Wultyc Wultyc
1

Run yield multiple times

Hello. I'm adapting one bootstrap template to blade with this structure master.blade.php #template file │ └───page.blade.p...
successdav successdav
3

UNABLE TO BOOT UP VAGRANT

When I run vagrant up I get this error $ vagrant up Bringing machine 'homestead-7' up with 'virtualbox' provider... ==> homestead-7: Checking if box 'lara...
matildah matildah
1

Property [name] does not exist on this collection instance in restaurants application

i have a restaurants controller and i want it to open the profile when you click on its link on all restaurants page This is the show function public function...
Aliji Aliji
3

Method Illuminate\\Routing\\Route::dispatch does not exist.

I am trying to dispatch route inside my API controller to get an access token from a registered user, this is what the path of my code looks like use Illuminate\Rout...
Laravel
3
664
AKaramanec AKaramanec
8

Problems on the Laracast 5.7 Episode 8 Lesson Page

On the lesson page, blocks with videos, lessons learned and others are not loaded....
FlyingTaco FlyingTaco
1

Sum Between Dates

I am very new to coding, let alone Laravel, I am hoping someone can help me with the logic for this part of my app. The app I am working on is for a poultry farm (eggs). I'...
Skyles Skyles
5

PHP unit testing

I am having this weird problem with phpunit. When i run it, it gives me failure. However on the browser everything is working fine. I then commented part of the test cod...
foremostdigital foremostdigital
2

How to pass variable as parameter in repository constructor from app()->bind().

Hey, I have my Repository. i.e. UserRepository. This UserRepository implements the contract called UserInterface. UserInterface.php interface U...
mostafalaravel mostafalaravel
2

How to show empty object instead of NULL when the one To one relationship is empty

Hello , in my controller I return users with 'groups' and 'sidnfo' models . the module 'sdinfo' in one to one relationship, public function...
mostafalaravel mostafalaravel
1

How to avoid duplicate code in store and update methods controller

Hi , I want to avoid the duplicate code because I repeat almost the same code in store and update methods as you can see from user controller : publi...
pmusa pmusa
4

setRelation to Collection

I'd like to make it so that my "reply" relation is not nested. Here is the $comments Collection :...
Laravel
4
134
pramanadiputra pramanadiputra
2

Laravel Apache + Nginx

Hello, Does anyone here ever deployed Laravel with Apache + Nginx as proxy? Can you share text or video tutorial about deploying Laravel with Apache + Nginx....
flightsimmer668 flightsimmer668
10

The DELETE method is not supported for this route

I have these routes in api.php // Admin Announcements Route::middleware('is.admin')->group(function() { Route::get('admin/announcements...
Laravel
10
87
methodman methodman
0

How to structure (Remote + Local) CRUD Classes?

Hi All! I'm not sure how to group my classes and logic for my project. I would need a system that can be reused for additional modules/domains as the app grow...
calin.ionut calin.ionut
1

(Swift_TransportException(code: 0): Connection to tcp://server.example.com:465 Timed Out

We have changed the email server from a provider to another. The where sending with the old email settings but not with the new ones. I am not sure if it`s laravel server o...
KingsleyO KingsleyO
0

How to get currentUser in firebase using laravel

Please i need somebody that have integrated any of the sign in methods preferable phone sign in using laravel. I already have my setup working but presently want to retriev...
kinggs kinggs
1

Caching model attributes

Hi, looking for some assistance with the following please. I have a model called User and an attribute available_today which looks like the follow...
david2000 david2000
0

No display

Hello, For to be simple, I have 2 tables Students and Feedbacks.I also have 2 roles which are Admin and Me...
Sulieman Sulieman
16

sending more than 10,000 sms

hello , i'm working on project with laravel that will send sms to many contacts, the contacts more than 10,000 , and i am using nexmo or twilio, they have good api ,but my...
Laravel
16
911
learn-by-flying learn-by-flying
9

Return $next($request) With Parameter

Hello All, I have searched and searched, however I cannot find anything. Background: I have a role based access system implemented through middleware however...
yusuf128 yusuf128
1

Single Eloquent Query

My task is done but problem with single query.So I want to count data with current date and future date and with status in single query . My Scopefunctions...
shuvobhai shuvobhai
2

removed data when git pull

I pass a role of array from showregistrationform method . it wroked fine when i am working .but after git push that project, i git pull later this project, role variable i...
AbdulBazith AbdulBazith
5

multiply product qty with rate with maximum rate in the list in relationship

guys i have a issue in multiplying the product quantity picked from sales table and multiply it with rate from purchase table. i have purchases tables...
Laravel
5
193

Subdomain + CNAME routing

I have my routes set up as follows: <?php Route::group([ 'domain' => '{username}.u.'.env('APP_DOMAIN'), ], function () { Route::get('/', 'Fron...
Laravel
9
535
agilasadi agilasadi
4

How to publish and register an extra Service Provider in Laravel Package

I would like to publish an extra service provider into App/Providers/ and then register it. The problem is I'm supposed to register it in register() function while I should...
matheenulla matheenulla
2

How to store Dropdown selected id in database not value in laravel

<option >Academics</option> @foreach($academic as $aca) <option id="{{$aca->id}}" value="{{$aca->na...
AhmadNour AhmadNour
4

installation Intervention Image php 7.3.5

i Need Install Package Intervention Image in instruction For Package says System Requirements PHP >= 5.4 Whan I need Setup it in laravel Composer Th...
david2000 david2000
9

Column not found: 1054 Field (Field 'email' unknown in where)

Hello, I have a table with 5 fields (id, user_id','instruction', 'description', 'fk_eleve') I want to retrieve the email user , I have tested this:...
Laravel
9
153
undefined_variable undefined_variable
1

stripe webhook route in api.php or web.php and exclude csrf

Hi, Everything I've searched for seems everyone puts the route in web.php and excludes the csrf. However all the awnsers are old and maybe thats how it needed...
Nevermind23 Nevermind23
4

1118 Row size too large

SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMA...
Laravel
4
1716

"operator not supported for strings" error by setting up mailable

I'm trying to setup an mailable in laravel. But i get the following error: Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) [] operato...
Laravel
5
100
Create a New Discussion Button