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
1
vote
2 answers

Laravel Spark Upgrade to 6 Causing github access errors

I upgraded laravel spark to version six and connected to the github repo on the site. Everything seemed to go OK on the npm install command, but when I ran the npm run dev, I got a slew of errors that basically told me that things related to spark…
Joshua Foxworth
  • 1,236
  • 1
  • 22
  • 50
1
vote
0 answers

How to update webpack.config file

I am upgrading Laravel Spark from version 3 to 4. Whenever I run npm run dev, I get the error... Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. -…
Joshua Foxworth
  • 1,236
  • 1
  • 22
  • 50
1
vote
0 answers

Laravel Spark Sessions

I have a problem with Laravel spark... I've develop an application and after release at server I have problem with sessions. Sessions are going expired randomly... Once over 6 hours and once over 2-3minutes... It is very weird... I am using: Ubuntu…
1
vote
3 answers

Debugging/Testing stripe webhook calls to Laravel Spark

I am currently testing Stripe webhooks using the latest Laravel Spark. I've got a Stripe account working, meaning that I can add (fake) creditcards and charge subscriptions/single payments. Next, I am using a fake hook endpoint (ultrahook.com) to…
1
vote
0 answers

Validation in Laravel Spark broken after changing user fields

I have minimally changed the registration process - instead of name, I'm using firstname and lastname. No problem. form: $.extend(true, new SparkForm({ firstname: '', lastname: '', email: '' }), …
yoyoma
  • 3,336
  • 6
  • 27
  • 42
1
vote
0 answers

Failed to mount component: template or render function not defined - Laravel Spark Upgrade

I have a Laravel 5.3 project based on Laravel Spark 2.0. I'm trying to upgrade Spark to 3.0 and Vue.js to 2.0 following the upgrade guide. I've added "laravel/spark": "~3.0" to my composer.json and it updated correctly. After that I added the…
levis
  • 367
  • 7
  • 17
1
vote
1 answer

Returning custom variable in Settings - Laravel Spark

I have setup Spark and I have created my custom view in Settings - Students (assume User object is actually a teacher). I have also created migration and model Student. Now http://spark.app/settings/students returns the page successfully. At this…
senty
  • 12,385
  • 28
  • 130
  • 260
1
vote
1 answer

Laravel Spark Installation in MAC

I'm new to mac and I don't know how to add path to the system. I have already cloned the file for spark and done composer update. I need to this next step. How do I do it in MAC? Next, make sure the spark-installer directory is added to your…
Lois Arce
  • 69
  • 1
  • 1
  • 7
1
vote
0 answers

Put method yields HTTP 405 (method not allowed) but works in Postman (HTTP 500)

I have created an addition to the profile settings page in Spark. The vue code: Vue.component('update-mail-settings', { props: ['user'], data() { return { form: new SparkForm({ type: '' }) }; }, mounted() { …
helloworld
  • 223
  • 1
  • 7
  • 24
1
vote
2 answers

Spark is not defined

I using spark in laravel with vue.js. I add in home.blade.php and I got this error: Uncaught ReferenceError: Spark is not defined what I had done: php artisan spark:install
1
vote
1 answer

Uncaught ReferenceError: Spark is not defined

I've been developing my Laravel app for some time now and decided to merge everything into Spark. I quickly realized my limited PHP/JS background was not really compatible with Spark so I tried to touch the Spark code as little as possible in order…
helloworld
  • 223
  • 1
  • 7
  • 24
1
vote
0 answers

Laravel Spark - selecting a plant requires new credit card info (although one has been saved/validated)

Dear Laravel/spark users, In my Laravel Spark settings page it is possible to set your payment method (and billing address). After filling in credit card info and adding it, everything appears to be stored properly. I can also charge the user via…
helloworld
  • 223
  • 1
  • 7
  • 24
1
vote
1 answer

Laravel Spark, custom global middleware

Target: restrict access to the part of spark routes until user did not accept custom form (agreement). All routes have to be restricted except custom agreement form, after user was logged in. Is there any way to set up global middleware for laravel…
Ilya Rogojin
  • 321
  • 2
  • 11
1
vote
3 answers

Laravel 5 - Use 'isAdmin' role check method when querying a model

I have implemented a basic role system that uses a table 'role_user'. On my user model I have a few methods that check the roles, one of them is: public function isStaff() { foreach ($this->roles()->get() as $role) { if ($role->id ==…
Lovelock
  • 7,689
  • 19
  • 86
  • 186
1
vote
1 answer

What are the :class Attributes in Laravel Spark/Vue.js

In Laravel spark, a
enclosing a rendered form element might look like this
That is -- is has a :class attribute. What is this? I get the intent/behavior -- if…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599