Th3apprenTis Th3apprenTis
8

Using Laravel config files

This is embarrassing to say the least but somehow i am not able to all values in my config file return [ 'banned_domains' => [ 'paypal.com'...

Create URL's from UI

Hello guys, I want to create an URL shortener but I don't really know how to generate new routes from an UI. Any suggestion or article I can read?...
dbos1504 dbos1504
1

Datepicker

Hello, I have json response dates: dates : { 20190520:{avai:1}, 20190521:{avai:1}, 20190522:{avai:0}, 20190523:{avail:0} ...etc ( 30 days) }, How to populate datepicker wit...
Vue
1
16
LordRaiders LordRaiders
10

Error 500 when uploading Laravel project to server,

When I upload my Laravel project to my server I get a 500 error (internal server error). I've installed it this way: Change the database connection from loca...
Servers
10
812

Laravel migration: Drop View with DB::statement doesn't work

Hi, One of my migration is creating a dynamic view calculating stock. This is the DB statement in my Up function: public function up() { D...
nhayder nhayder
2

contact us from error "Trying to get property of non-object" for event listner

i have a contact us from that triggers an event to send the email, i'm getting this error when i attempt to submit the email from the event listener "T...
bufferoverflow bufferoverflow
5

Mailable to() error in production

I have a mailable set for my contact form. It's working in local env but crashing on production with the following error: Trying to get property 'email' of non-object...
Laravel
5
325
Dave97 Dave97
3

laravel Forge Horizon Exited too quickly (process log may have details)

When running : php artisan horizon on Forge server, I get the following message Supervisor fatal Exited too quickly (process log may have details)...
Forge
3
433
Mike_SA Mike_SA
3

Password updating but not able to login with new password

Hi, I have created a new UserController so that I can update users on the backend. When I submit the update, everything updates including the new Hashed password but...

Scaling Laravel - required infrasturcture for a PaaS application

I have an application that runs on Laravel and is managed by Forge laravel. My application sends sms messages campaigns, with specific promotions. each campa...
Servers
3
192
meduz meduz
4

Should Forge + Digital Ocean users care about MDS/ZombieLoad Intel vulnerability

Hi, Following last Intel mess, Digital Ocean recommends to update the Kernel of their dropl...
Forge
4
155
hjortur17 hjortur17
13

Slug

Hello, I'm trying to use slug for my threads. I have a script to check if the slug and then add to it a number if somewhere in my forum a thread has the same title and slug...
General
13
140
farshadf farshadf
0

Laravel swagger auto Generator documenter

i need a package to document my api with swagger i know there is a api documented package but i want exactly swagger i find a package for swagger but it requires to write a...
jlanzas jlanzas
0

Help transforming collection

I have a collection of date in which I save the year sales in pounds. I want to get a summary from that data. I have run the following code to obtain the daily sales...
irankhosravi irankhosravi
1

The GET method is not supported for this route. Supported methods: POST.

Look at my codes web.php Route::post('/code', '[email protected]')->name('code'); Route::post('/send', '[email protected]')->name('send');...
dennis1502 dennis1502
3

Send copy of Laravel notification to admin

Hi, I am working on a module where you can create users and link them to specific restaurants. When a users is created, the manager of the restaurant and if set, the...
Laravel
3
113
SkyCoder SkyCoder
0

Laravel group by date range

How can I group rows by custom daterange? $new_period = CarbonPeriod::create($start, $end); $data = (new Model)->whereBetween(DB::raw('date(start)'), [$n...
atfinho atfinho
5

Laravel & Pusher instruction

Hey guys I'm new to laravel & pusher combinaison ,I would like to know how can I automatically get my data from pusher when I fire an event in laravel I'm using...
Ronster Ronster
1

Looking for the best approach

Hi, In my company we have a lot of background job running to update a lot of data. besides that we also have a team of data validators who update the same data in ou...
Tips
1
38
Shiva Shiva
13

Issues with sending an email with a pdf attachment

I have a page that when the user successfully pays they get sent an email with an invoice. The problems I'm having is that I keep getting this error T...
Laravel
13
116
farshadf farshadf
3

how to show array as separated fields in laravel resource api

I have a resource that I am sending 2 additional data to it which are 2 arrays like below : This is my resource : /** * @var */ private $foo; /** * C...
RidwanIslam RidwanIslam
4

How to access functions within a model, in a view

Hi, How can I access a function within a model? (in a view) I got this small function in my model, and I would like to access it in my view. namespac...
ruhulamin ruhulamin
2

Getting Undefined offset: 0

Controller code- $user = User::orderBy('id', 'desc')->get(); return view('user')->with('user', $user); In the view- ec...
kundefine kundefine
5

laravel share variable in all views as reference

I really want a very simple thing I Share a global variable from AppServiceProvider like below public function boot(...
nitinsinghnaruka nitinsinghnaruka
2

How to get nested relation's count with parent data

Category::with(['packages'])->withCount('packages.papers')->get(); This code is throwing error....
tastemedia tastemedia
2

Many-to-many not getting tag names

Hi there, i´m having problems receiving the tag names belonging to a videopost. my model for videofiles class Videofiles extends Model { public...
domainregistrar domainregistrar
2

retrieved model even not firing when accessing via relationship

So I have a relationship on my model setup like so: public function registrant() { // Returns only contacts where their role is Registrant in the pivot t...
Balawant Balawant
6

https://laracasts.com/discuss/conversations/create

Hi i am balawant ....I want to send multiples sms by using laravel which api is better ????Is it possible to send multiples sms by using laravels ..... I am aware with si...
Laravel
6
114
EMfinanga EMfinanga
3

delete data in multiple tables

i want to delete, all data in multiple table where id is selected by click the button, i have two table is related...
nogepog nogepog
0

modify ajax script to perform update/create on the same route

I am a beginner and was reading docs today, Icame across the updateorcreate method in documentations .i have a ajax script to perform save operation how do i modify it to o...
martin182 martin182
7

csrf token mismatch

Hi, I have two ajax post requests. Every time I try to do a post request it says that there is a csrf token mismatch. In both ajax requests I included the csrf token....
mustafaabdujalil mustafaabdujalil
2

database

i have array of n number, i want to get data from database where(rating,array) example if i have array test=array(1,2,3), i want get data that it's rating=1 and 2 a...
mostafalaravel mostafalaravel
1

SSH php version not the same as Vagrant

Hello, when I run php version from the SSH vagrant : php -v PHP 7.1.28-1+ubuntu18.04.1+deb.sury.org+3 (cli) (built: Apr 10 2019 10:50:29) ( NTS ) Cop...
AbdulBazith AbdulBazith
2

How to make form and db as dynamic based on user requirement in laravel

Guys i have a problem in starting my new project. i need to make an application for a school to manage their students profile, staff profile and fee payment and sala...
GiacomoM GiacomoM
12

Override old input values

Hi, I am creating an edit record view, and I would like to use my add record view. The problem is that I need to override the old input values, so the view can be th...
Laravel
12
1049
Create a New Discussion Button