Giter VIP home page Giter VIP logo

Comments (10)

stoneshaq avatar stoneshaq commented on July 17, 2024 1

This is how i solved the issues..

Kernel.php add the "AppName" command:

in protected $commands add:
\SAASBoilerplat\App\Console\Commands\AppName::class,

and then run:
php artisan app:name SAASBoilerplate

when you run migrate you will get an error with cashier.. so go to AppServiceProvider.php and add

Cashier::ignoreMigrations();

under register()..
it should look like

public function register()
{
Cashier::ignoreMigrations();
}

and dont forget to add
use Laravel\Cashier\Cashier;

now run php artisan migrate.. Hope it helps

from saas-boilerplate.

ambitionphp avatar ambitionphp commented on July 17, 2024

same issue here.. stumped for a bit now but will update if i find a solution.

from saas-boilerplate.

ambitionphp avatar ambitionphp commented on July 17, 2024

okay, so in Kernal.php add the "AppName" command:

in protected $commands add:
\SAASBoilerplat\App\Console\Commands\AppName::class,

and then run:
php artisan app:name YourAppNameHere

from saas-boilerplate.

bauersfeld avatar bauersfeld commented on July 17, 2024

Thanks, that worked to create the namespace, but now the migrate command is failing

php artisan migrate
PHP Fatal error: Uncaught ReflectionException: Class SAASBoilerplate\App\Console\Kernel does not exist in /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php:809
Stack trace:
#0 /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php(809): ReflectionClass->__construct('SAASBoilerplate...')
#1 /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php(691): Illuminate\Container\Container->build('SAASBoilerplate...')
#2 /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(796): Illuminate\Container\Container->resolve('SAASBoilerplate...', Array, false)
#3 /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php(269): Illuminate\Foundation\Application->resolve('SAASBoilerplate...', Array, false)
#4 /Users/paul/Downloads/laravel/saas-boilerplate/vendor/l in /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 811

Fatal error: Uncaught ReflectionException: Class SAASBoilerplate\App\Console\Kernel does not exist in /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php:809
Stack trace:
#0 /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php(809): ReflectionClass->__construct('SAASBoilerplate...')
#1 /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php(691): Illuminate\Container\Container->build('SAASBoilerplate...')
#2 /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(796): Illuminate\Container\Container->resolve('SAASBoilerplate...', Array, false)
#3 /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php(269): Illuminate\Foundation\Application->resolve('SAASBoilerplate...', Array, false)
#4 /Users/paul/Downloads/laravel/saas-boilerplate/vendor/l in /Users/paul/Downloads/laravel/saas-boilerplate/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 811

from saas-boilerplate.

jvallef avatar jvallef commented on July 17, 2024

php artisan migrate fails even if skip previous artisan app command...

PHP Fatal error: Cannot declare class CreateSubscriptionsTable, because the name is already in use in /Users/jvallefdz/web/saasboilerplate/vendor/laravel/cashier/database/migrations/2019_05_03_000002_create_subscriptions_table.php on line 0

from saas-boilerplate.

tboztuna avatar tboztuna commented on July 17, 2024

To people who gets error with migrations:

You can just use php artisan migrate --path=database/migrations/ to create database tables without any doubt.

from saas-boilerplate.

OneHighCloud avatar OneHighCloud commented on July 17, 2024

This command is removed in Laravel 6.0. So, if you are using Laravel 6 or above, the command wouldn't work. You can edit .env APP_NAME="---Your App Name---" for the purpose.

from saas-boilerplate.

sapfeer0k avatar sapfeer0k commented on July 17, 2024

To solve the problem with migrations you need to replace all occurrences of SAASBoilerplate in all files with your appName , then migration will work.

from saas-boilerplate.

riettotek avatar riettotek commented on July 17, 2024

why they decided to remove that command. i just can't get it! 👎

from saas-boilerplate.

gabayim avatar gabayim commented on July 17, 2024

Hi Thx for the help.
im getting the error : "No application encryption key has been specified"

any clue ?

from saas-boilerplate.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.