Our Black Friday sale is now live! All individual subscriptions are 50% OFF. This week only!

mejohnnyv mejohnnyv
5
I have a site on forge. In the Active Sites it shows *.example.com. I want to create a demo.example.com...... So I can do finally live testing and not take down the website. I think demo.example.com is being directed to the folder www.example.com....
Hey, I made a brew upgrade today that installed php8.0 on my Mac ... It's too early for it and compatibility with Laravel and packages not ready. I tried going back to php7.4 but can't find it ? Did php brew install [email protected] => no and when doing a...
ehben replied
Solved
uuuugggggg uuuugggggg
7
I am working on a simple app where you can create items and then add to the value as needed. I have an update controller that works well and can use it if needed but I wanted to make a simple function for quick additions to my values. public functio...
andyandy andyandy
5
I'm generating bar chart. Data are coming as [20, 36, 15, 58, 60, 48, 14, 26, 18]. Highest value from array will be equal to 100px. Lowest value from array will be equal to 30px; Calculate 'px' for all the values from the array. //it's in javas...
Hey, So what I'm trying to accomplish is for example if I have 3 plans: $10, $30 and $50. What I want is if the user is currently subscribed to the $30 plan and switch to no matter which other($10 or $50), to bill him the full amount for the selected...
w1lldone w1lldone
2
Hello everyone. I'm working on a command that subscribe to a Redis channel and should dispatch a job after receiving a message. But for some reason the job was never dispatched. I use Redis for my Queue connection. Laravel Version: v6.20.4 PHP Versi...
giacholari giacholari
1
What do you guys think of the website ==> www.discusslab.com This is my second website this year. It has been 8 months now that I am a member at laracasts and I cannot thank enough Jeffrey for his help. Progress progress ......
anibabbar anibabbar
5
What should be the best way of managing 3 different users Permissions? Admin = 0 Staff = 1 Registered User = 3 should I just create another column in the user table 'user_type' and then somehow restrict users to certain controller methods ? Please su...
parthp1808 parthp1808
1
Hey, I have a form with several inputs - stores the record via ajax. I also use request validation to validate the input. Though i have discovered one security issue - In company name input - If I enter ["><img src=mir onerror=alertSpam&g...
thecelebratedmrk thecelebratedmrk
5
I'm quite new to Laravel, but here's a problem I've come across several times the past months: Whenever I want to install a new pack via Composer, my configured files reset / are overwritten. My configurations in app.css, app.js, webpack.mix.js are a...
Snapey replied
Solved
InspiredPrynce InspiredPrynce
1
Hello guys, am working on a ride hailing service app... Please which API service can help me do the following: when a types in a location, it should be a location within a certain state and it will display only places within that state When a user s...
ubfacility ubfacility
4
$toView = []; $organisations = DB::table('organisations')->select('id', 'name', 'abbrev')->where('approved',true)->get(); $toView['organisations'] = $organisations; return app(RegisterViewResponse::class,$toView); an...
AntonioNiphon AntonioNiphon
2
Hi, I made backup copies of my project in the event anything went wrong. I needed to revert to the latest backup project, because i installed a theme and it didnt work out. Everything worked in the project before, but in the backup version images won...
ubfacility ubfacility
0
please how do I use a dropdown in a laravel jetstream registration form and how do I understand the component model. <div class="mt-4"> <x-jet-label value="{{ __('Organisation') }}" />...
DaylightFox DaylightFox
5
So I could really do with a website builder, even a basic one that just allows the user to change images and text is good enough. I've found GrapesJs which looks like it could do the job with some work, however it is made in NodeJS. How would I go ab...
pordonez pordonez
7
Hi guys, i already searched (may not searched enough) but i haven't able to disable all the weekends (Sat,Sun) on my daterangepicker. Can anyone help me please. Note: I'm using https://www.daterangepicker.com/...
Adamcy_Cooler Adamcy_Cooler
2
I am testing stripe webhook with wamp server with laravel cashier, I am using stripe CLI to test but when I set my endpoint for stripe to listen Stripe listen --forward-to http://laravel-tests/vendor/stripe/stripe-php/lib/Webhook and fired up an even...
Hello! I'm having a slight problem with my PHPStorm, it is marking Closure as "invalid"... The code where I'm experiencing the issue <?php namespace Modules\Fortify\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; use...
Hey guys, Just giving JetStream a try; and while setting it up, everything went smooth. Now I try to login to the dashboard, and all I see is "@routes" When I look in the console I see the following: ReferenceError: Can't find variable: rou...
alturic alturic
0
I have 3 routes Route::get('/', DashboardIndexAction::class)->name('dashboard'); Route::post('/logout', LogoutAction::class)->name('logout'); Route::get('/login', LoginAction::class)->name('login'); Route::post('/login', LoginSubmitAction:...
nouratwy nouratwy
7
Im trying to display an image using api axios , the api is retrieving the path image from database but the image is not loading import axios from 'axios'; class Products extends Component { state={ products:[], }; componentDidMount() { a...
lazos99 lazos99
12
I have an application that has a user management page and our customers have the choice to either use Eloquent or LDAP (Active Directory) to manage the users. For that I have 2 Controllers EloquentUserController and LdapUserController and an abstrac...
hafiz_r hafiz_r
9
$botman->hears('appointment||input.welcome', function (BotMan $bot) { $extras = $bot->getMessage()->getExtras(); $apiReply = $extras['apiReply']; $apiAction = $extras['apiAction']; $apiIntent = $extras['apiInt...
hafiz_r replied
Solved
Adamcy_Cooler Adamcy_Cooler
0
Please if anyone has any idea why I keep getting this error when I submitted the stripe subscription form should please help, this error got me stuck for a while now, just trying to create a subscription from the pricing page or subscription plan pag...
kbuczynski kbuczynski
6
Hello. I have created small unit test to test a post route to my API. However the unit tests return 500 on it and never hits the controller and IDK why :( The error: [previous exception] [object] (PDOException(code: 42S02): SQLSTATE[42S02]: Base tabl...
LetherMade LetherMade
1
Hi All, I have some irritations about PHPStorm and Laravel. Like the most Laravel users they include the Barry IDE Helper in the project to auto-complete the most code. But there are some things I want to ask how you guys fixes these annoying things!...
MohammadAbusaleh MohammadAbusaleh
13
Hello, I'm trying to run a scheduler on Ubuntu 18.04, This is my Kernel.php protected $commands = [ IntegrityCheck::class ]; protected function schedule(Schedule $schedule) { $schedule->command('integrity:check')-&...
trevorpan trevorpan
5
Hi there. Having quite a time with queues. In the laracasts notification videos we can create an event and set multiple listeners to send mail notifications, etc. I had this working for months. After installing horizon, though, I found messages faile...
This would work. Problem is, that second foreach is always looping through entire collection. Could it be written better without that IF? $categories = Category::get(); $products = Product:get(); @foreach($categories as $category) //code @forea...
andyandy andyandy
3
$result = DB::select(' SELECT g.* FROM groups g JOIN products p ON p.group_id = g.id LEFT JOIN shipping s ON s.group_id = p.group_id AND s.order_id = p.order_id //why I cant add this line here t...
Adamcy_Cooler Adamcy_Cooler
3
I am trying to edit/update an image in a user table, when I select a new image and submit the form the image name doesn't get stored in the database instead this C:\wamp64\tmp\phpAE1C.tmp get saved in the image column, I don't know why, Please help i...
jlrdw replied
Solved
Adamcy_Cooler Adamcy_Cooler
1
when I try to create a new subscription I get this error (This customer has no attached payment source or default payment method. ) so I checked the PaymentController with dd($paymentMethod) which returned null so I don't know why the variable $payme...
kylemabaso kylemabaso
11
Hi Guys, I'm new to Laravel. I started working on Laravel 7 a week ago, built an API and everything is working fine. I attempted to recreate the same API with Laravel 8 but my api routes don't seem to be working anymore. I get an error that says: &qu...
Hi guys, I need help on something. I want my app to fetch data on initial load from a 3rd party api and save it to the database. Then, a background process should run every 5mins (or so) and update the database. So basically, the data that users will...
andyandy andyandy
8
//projects id | name ------------------------- 1 | something 2 | something //workdone id | project_id | type ----------------------------- 1 | 2 | painted 2 | 2 | assembled 3 | 1 | painted 4 | 1 | sent Give me only projects that were asse...
piljac1 replied
Solved
Create a New Discussion Button