Questions tagged [laravel-spark]

Spark is an experimental project primarily intended for building business oriented SaaS applications, and is highly opinionated towards that use case.

The Laravel Spark is an opinionated way of building out business oriented SaaS applications. It features team management, user roles, recurring billing through Stripe, and much more.

Spark is designed with only one goal in mind, to make scaffolding out a billing system for a SaaS app easy.

Links

News laravel/spark

221 questions
97
votes
27 answers

How do I fix a "Vue packages version mismatch" error on Laravel Spark v4.0.9?

When I run npm run dev on a Laravel Spark v4.0.9 app, I get the following error: Module build failed: Error: Vue packages version mismatch: - vue@2.0.8 - vue-template-compiler@2.2.6 This may cause things to work incorrectly. Make sure to use the…
Nate Ritter
  • 2,386
  • 3
  • 20
  • 28
16
votes
4 answers

How to bind user object to request in a middleware

i'm writing an application in Laravel Spark 1.0 (Laravel 5.2). I wrote a custom middleware for agent (api) authentication. This is the code:
eldblz
  • 758
  • 3
  • 11
  • 24
8
votes
1 answer

Laravel Spark - redirect on login

I have a very simple problem. I just want to direct the user to somewhere other than '/home' after they login. This is not difficult if you can alter the spark software and retain those changes in every deployment. However, composer reinstalls…
Joshua Foxworth
  • 1,236
  • 1
  • 22
  • 50
8
votes
1 answer

Creating a child component within a parent component in Vue.JS

I am trying to figure out how to make one component inside of another one in VueJS. For instance, something like this, which unfortunately does not work (the child component appears to do nothing): http://www.webpackbin.com/NyI0PzaL- I am equally…
Bryan Miller
  • 3,262
  • 4
  • 27
  • 51
7
votes
3 answers

How to exclude slugs from a Laravel route pattern

I have a Laravel Spark application, and would like to use the first two parameters in a route for team and project, with exceptions like about_us, settings, api etc. I have set up my routes, similar to: Route::pattern('team',…
Elliot
  • 1,457
  • 13
  • 40
7
votes
4 answers

Laravel 5 - Moved User model to App/Models causing autoload issues

Working on a inherited Laravel Spark project that contained two User models. One is the standard Spark model inside the App directory but the other is inside App/Models. I have combined the two models and updated the auth.php to reference the User…
Lovelock
  • 7,689
  • 19
  • 86
  • 186
7
votes
1 answer

How to hook into Spark Events on Register

I know that spark has events that can be listened to when user has registered but I'm totally new to laravel and Events, are there examples that I can make use of to access the events? My goal is to listen to the user created event and send a…
Mohammed Abrar Ahmed
  • 2,290
  • 3
  • 15
  • 33
6
votes
1 answer

Failed to download laravel/spark-aurelius from dist: The "https://api.github.com/repos/laravel/spark-aurelius/zipball

I am installing laravel spark under windows, installation via composer. when i get to the stage compose update of the documentation i have this error: Failed to download laravel/spark-aurelius from dist: The…
Le kawarien
  • 117
  • 1
  • 11
5
votes
1 answer

Laravel Nova not working with Laravel Spark: Unexpected token P in JSON at position 1213

After installing Laravel Nova to my Spark application and going to /nova, the nova interface showed, but I can't click anything. Opening the dev console, I see the following errors:
kevnk
  • 18,733
  • 3
  • 28
  • 30
5
votes
2 answers

Laravel Spark - Cannot connect to repo

So, I recently made two big changes ... moved my code from bitbucket to github, and set up a pipeline on heroku with a new staging app (original app is now production). I got a new github token and placed it into the auth.json file as was done with…
Joshua Foxworth
  • 1,236
  • 1
  • 22
  • 50
5
votes
1 answer

Stripe coupon without requiring a credit card?

I'm working with a client that wants to create 100% off a subscription coupon codes. They don't want users to have to enter a credit card if they have one of these coupon codes. Is this possible in Stripe? I'm using Laravel Spark and it appears that…
BarryWalsh
  • 1,300
  • 4
  • 14
  • 36
5
votes
2 answers

Laravel Spark is not displaying images that are stored in the /storage/app/public/profiles/ directory

The default for uploaded images appears to be /storage/app/public/profiles/, but the frontend generated URL of /storage/profiles/image isn't being found. I tried to find any sort of routing for that directory and haven't been able to do so. Any…
John Fable
  • 1,081
  • 7
  • 11
4
votes
1 answer

Override Laravel Spark controller method

I am trying to play a bit around with Laravel Spark, and as a test I'd like to override the "Create API Token" request. I notice the endpoint being used, when a user should create an API token is this: POST | settings/api/token |…
FooBar
  • 5,752
  • 10
  • 44
  • 93
4
votes
1 answer

How are local invoices created in laravel spark?

I have successfully setup spark on my local machine it works perfectly. I have added various plan, which users are able to subscribe by making the payment. But the invoice section does not show me any invoice which should be created when a user…
4
votes
1 answer

Laravel Spark redirect on registration

I am simply trying to redirect a user to a page when they register. I have accomplished this redirect when the user logs in by altering the following line in the LoginController in vendors/laravel/Spark/src/Http/Controllers/Auth protected…
Joshua Foxworth
  • 1,236
  • 1
  • 22
  • 50
1
2 3
14 15