hjortur17 hjortur17
13

Customizing the Laravel Verify email

Hi, how can I change the Best Regards and If you’re having trouble clicking the "Verify Email Address" button, copy and paste the URL below i...
Laravel
13
153
rjruiz rjruiz
11

How to return JSON response from a query with eloquent?

I am working on this query: (I wish I could pass this same query using eloquent and return a JSON as response.) public function getChart(Req...
Eloquent
11
130
Iljido Iljido
4

is there any forum/discussions package for laravel 6.x/7 ?

Hi, i'm looking for a forum or discussions package for laravel 6.x/7 or similiar to laracasts forum ?? i found mostly for laravel 5 and some didn't work for me Ty....
asadsajjad asadsajjad
2

data is not displaying on heroku but on localhost

I have been guided by one of the people here and I did make the change to it and now I am not getting anything displayed as the value is null on the heroku server. Any help...
asadsajjad asadsajjad
6

Trying to get property 'likes' of non-object (View: /app/resources/views/products/productView.blade.php)

on my local server this is working and on hosting it is giving error. I dont know where I am doing this wrong Trying to get property 'likes' of non-object (View: /ap...
Laravel
6
2861
burimb burimb
5

Get all relationships of relationships !!

We have a table a project that have many milestones and each milestone have many tasks. How to get for each milestones all tasks and get onlt...

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

i just can't find why my data in the graphics table doesn't show up public function index () { // if(!empty($graphics)) { // $graphics = Graphic::get('amount');...
Laravel
8
142
cclegend905 cclegend905
6

Gate::allows in controller constructor laravel

I got this gate which checks if user has active subscription: Gate::allows('paid-actions') It works as expected inside methods but I've like 10 methods and routes so...
Viernes Viernes
11

Redirect my Project to dashboard

I set my Hosts file to 127.0.0.1 app.test and Vhosts in Apache ##<VirtualHost *:80> ##ServerAdmin [email protected]...
Laravel
11
1401
kevin73 kevin73
5

Method Illuminate\Auth\RequestGuard::attempt does not exist.

Hi , i get this error message : BadMethodCallException Method Illuminate\Auth\RequestGuard::attempt does not exist. when i use Auth::...
Laravel
5
3378
joshblevins joshblevins
1

Http Request getting body content

I am working with email2webhook.com and sending an email which then hits my API to add a record to our database. this is my controller code public fun...
FareedR FareedR
4

How to not loop the same data in foreach ?

Currently I need to display selection of created_at for searching . How can I loop only ONE date . For an example //db id | title |created_at | 1 A 2020-02...
joshblevins joshblevins
1

Getting related item from json array.

Is it possible to get a relation to another table using a json array. I have stored in a column groups that a message is sent to. ["25",&quo...
zaster zaster
25

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists

I am getting the below mentioned error when i run php artisan migrate SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists...
Assistance
25
24590
hjortur17 hjortur17
16

Cleaner way to write this code?

Hi, is there any way to write this any other way? A cleaner way? $role = \Auth::user()->roles[0]->role; I'm using a many-to-many relat...
Laravel
16
203
ArthurGuy ArthurGuy
16

Forge alternatives

Hi all, I was wondering if anyone has got any recommendations for alternatives to Forge. I use it along with Envoyer for managing my sites but I would like to be abl...
Servers
16
1938
ajsmith_codes ajsmith_codes
11

Need help debugging Laravel TDD app.

I am working on the Birdboard app from the Laracasts series. Currently, any activity on the Project page will log that activity. The problem I have is that when I update a...
Laravel
11
74
mehmetanbaki mehmetanbaki
1

laravel 7 created_at returned value format

after upgrading to laravel 7 created_at format returned just like this '2020-03-31T09:40:53.000000Z' i just want the old format...
boyjarv boyjarv
10

setting up a logout method?

So I set this Route: Route::get('/logout', '[email protected]')->name('logout'); and I set this method in my HomeController:...
Laravel
10
67
hunterhawley hunterhawley
3

Difference Between Queries?

Hi there, I was wondering why these two queries are returning very different counts? Version 1: $collection = BasketballGameEv...
dbiljak dbiljak
7

CORS on Laravel 7

I can't find any documentation for the CORS setup on Laravel 7. I don't have cors.php in the config folder, I added this to my routes/api.php: header('Access-Control...
Mix
7
64
Kaustubh Kaustubh
3

How to pass $id from controller to route and route to controller

Here is my code Controller class SellerController extends Controller { public function __construct() { $this->middleware('auth:sell...
Laravel
3
2246
zaster zaster
3

Execute if the condition is false

public function check_vendor_vat() { if ($this->vendor_company->vat_no != null) { return true; } else { return fal...
mammadataei mammadataei
4

Limit API access

Hi, I want my API to be accessible just from my SPA and nothing else can send a request to the API. How can I do that? Should I use CORS allowed_origins?...
AhmedNaser AhmedNaser
1

At least one value selected with validations

Hi there I have an array of Boolean values I want to make sure that the array has at least 1 true value public function rules() { return [...
theUnforgiven theUnforgiven
3

Updating one modal/table from controller and the other table

I'm sure there is a way to do this, just can't find it within the docs and can't remember for the life of me. So I have I a user table, this user table hasMany Alert...
GrahamMorbyDev GrahamMorbyDev
1

Vue Persist not working on page reload

Hey Guys I have installed vue-persist and loading it via vuex. Every stores ok yet when I reload the browser nothing is being persisted back to the store....
Vue
1
45
haoyang0517 haoyang0517
2

Laravel 5.5 observer

Hi I'm new to laravel and using laravel 5.5, I doing something using the observer. But while i run the code, it show me Type error: Argument 1 passed to App\Observer...
rahul95 rahul95
4

Best way to handle Registration Process Queues

Hi, I am building an application on which I've using Job Queues to process notifications after a user signs up. This is the case, When a user register in i have to s...
Laravel
4
192
Aronaman Aronaman
4

special character in query builder

in my database i have 10 bookings row from 10 i have 8 Bookable_type="App\Room", but i get zero, i think this is b/c the special character "/" . how ca...

Stream email attachment

I have a file that needs to be downloaded and sent as an attachment via notification. Is there a way to stream this file directly to the notification instead of actu...
CarlEOgden CarlEOgden
2

Displaying HTML text from a variable in a blade

Hi All Hope everyone is okay and staying safe! I've got a daily php cron routine that I'm writing, I've got all the data in my controller and when I then call...
Spiral Spiral
21

How to send image link from Laravel storage to frontend(angular)

public function index(){ $data = HeaderSlider::all(); return $data; } <ul *ngFor="let item of data"> <img [src]="...
Laravel
21
175
BladeRunner BladeRunner
7

Two dependencies

Can i have two repositories as a constructor dependency in laravel?...
lancis lancis
1

Unique With Validator

Laravel Core Validation features of Unique is super awesome but in many of my project, i have to pull this package(...
Create a New Discussion Button