Category : heroku

I’m deploying laravel 5.5.* application below the environment variable I have on heroku configvars APP_DEBUG=true APP_ENV=production APP_KEY=base64:lt0UH5hEpqYUcOFewg8eMCnk56stKkNSF3mrTL0OO+4= APP_LOG_LEVEL=debug CACHE_DRIVER=redis DATABASE_URL=postgres://xgohjmbudurwgo:0[email protected]ec2-52-7-228-45.compute-1.amazonaws.com:5432/d2epvc9odsv8q7 QUEUE_CONNECTION=redis SESSION_DRIVER=redis Actual Result on Whoops, looks like something went wrong. on this link after running git heroku push master (1/1) FatalThrowableError Class ‘PredisClient’ not found List of Add-ons postgress the expected result is laravel ..

Read more

I’m uploading images using Laravel 8 to upload images to Cloudinary CDN, it works great on my localhost but when I try using it deployed to Heroku, it skips over uploading the image but creates everything as it should in the database. My code for uploading to Cloudinary $recipe_image = cloudinary()->upload($image->getRealPath(), [ ‘folder’ => ‘uploads’, ..

Read more

I have developed a front (react) and a back (php laravel) with the authentication system "sanctum". All is working fine on localhost. But I can’t get it to work in production in heroku. In local environment ,my .env is (extract) : SESSION_DRIVER=cookie SANCTUM_STATEFUL_DOMAINS=localhost:3000,127.0.0.1:3000,localhost:8000,127.0.0.1:8000 SESSION_DOMAIN=localhost If I have understood well, the front and back must be ..

Read more

I’ve been trying to use S3 storage to store images for my site. The images upload and can be seen in the bucket however I’m having problems when retrieving the images to display in my blade pages. Currently my saving of the file looks like this: $path = $request->file(‘coverimg’)->store(‘coverimgs’, ‘s3’); Storage::disk(‘s3’)->setVisibility($path, ‘public’); $url = Storage::disk(‘s3’)->url($path); ..

Read more

I deployed my laravel application with database to heroku It was success but when I tried to register a new user I get this error SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user I am using laravel 8.x, mysql as database I ran heroku run bash and mysql command to connect ..

Read more

please I need help on this, I have tried many approaches before open this ticket here, I’ve successfully deployed my Laravel+Vuejs project on the Heroku, but the problem is that whenever I type in the "Heroku Open" or access the webpage URL to load, I get the following error : Forbidden You don’t have permission ..

Read more

//profile.blade.php <form action="{{ $isFollowing ? route(‘unfollow’, $user->username) : route(‘follow’, $user->username) }}" method="post"> @csrf <button type="submit">{{ $isFollowing ? ‘Unfollow’ : ‘Follow’ }}</button> </form> // ProfileController.php public function index() { $reqUsername = request()->route()->parameter(‘username’); $user = User::where(‘username’, $reqUsername) ->with([‘followers’, ‘records’ => function($query) { $query->with(‘likes’); }]) ->firstOrFail(); if ($user->followers->count()) { foreach ($user->followers as $follower) { $isFollowing = $follower->id == ..

Read more