penguinfeet

penguinfeet

Member Since 4 Years Ago

Experience Points 1,140
Experience Level 1

3,860 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 3
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

26 Apr
3 years ago

penguinfeet left a reply on SSL Working With Forge, But Not Redirecting From Http To Https

I did indeed restart the nginx server.

penguinfeet left a reply on SSL Working With Forge, But Not Redirecting From Http To Https

Unfortunately clearing the cache did not solve the issue.

penguinfeet left a reply on SSL Working With Forge, But Not Redirecting From Http To Https

Hmm, I tried adding that additional block, restarted nginx, still not working. Any other ideas?

penguinfeet started a new conversation SSL Working With Forge, But Not Redirecting From Http To Https

Hello, I have gotten the SSL to work with letsencrypt on Forge. But when I visit my site name in the url address bar: "example.com", it does not redirect to https://example.com. Instead it just shows a 404 error. I checked nginx -t, and there are no errors:

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful

If I go directly to https://example.com or https://www.example.com, it works fine. Any ideas?

25 Apr
3 years ago

penguinfeet left a reply on SSL LetsEncrypt Site Not Working On Forge

I am getting this error when I go into /etc/nginx/sites-available:

forge@somewebsite:/etc/nginx/sites-available$ sudo nginx -t nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/nginx/ssl/default/83514/server.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch) nginx: configuration file /etc/nginx/nginx.conf test failed

penguinfeet started a new conversation SSL LetsEncrypt Site Not Working On Forge

I have installed SSL using a tutorial on letsencrypt. I was able to install it successfuly for my Forge site. It was working fine before, but now with "SSL" it is not working (with either https or http). What is happening? Please help.

Used this tutorial: https://sysops.forlaravel.com/letsencrypt

04 Aug
3 years ago

penguinfeet started a new conversation Sending Laravel 5 Errors To The Front End With Javascript (React.js)

Hi guys,

I am rendering my views with React.js code and have a simple input form. I would like to validate the input, and send back errors to the front end in the event that there are errors. The input form is sending the data back with Ajax.

I am unsure of how to do this?

View:

Relevant React.js code:

<div className="overall-input">
                                  <ReactCSSTransitionGroup transitionName="example" transitionAppear={true}>
                                      <input type="email" className="input_field" onChange={this._updateInputValue} ref="email" value={this.state.email} />

                                      <div className="button-row">
                                          <a href="#" className="button" onClick={this.saveAndContinue}>Request Invite</a>
                                      </div> 
                                  </ReactCSSTransitionGroup>
                              </div>   

request = $.ajax({ 
              url: "/user", 
              type: "post", 
              data: 'email=' + email + '&_token={{ csrf_token() }}',
              data: {'email': email, '_token': $('meta[name=_token]').attr('content')},
              beforeSend: function(data){console.log(data);},
              success:function(data){},  
        });

Controller:

public function store(Request $request) {

        $this->validate($request, [
            'email' => 'Required|Email|Min:2|Max:80'
        ]);

        //$v = User::validate(Input::all());

        $email = $request->input('email');;

        //if ( $v->passes() ) {  

            $user = new User;
            $user->email = $email;
            $user->save();

        //}

        return $email;

    }
06 Jul
3 years ago

penguinfeet left a reply on Class 'App\Http\Controllers\User' Not Found' In /home/vagrant/code/vidvalize/app/Http/Controllers/UserController.php

@jekinney $request->input worked just fine? Am I missing something there? This is what the docs say to use in Laravel 5.

penguinfeet left a reply on Class 'App\Http\Controllers\User' Not Found' In /home/vagrant/code/vidvalize/app/Http/Controllers/UserController.php

Can I ask why I have to add this? Should I be doing this for every controller?

penguinfeet started a new conversation Class 'App\Http\Controllers\User' Not Found' In /home/vagrant/code/vidvalize/app/Http/Controllers/UserController.php

I have the following Controller (UserController). I have a "store" function that I am using:

<?php namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request; 
//use Illuminate\Routing\Controller;

class UserController extends Controller {

    /**
     * Store user info.
     *
     * 
     * @return Response
     */
    public function store(Request $request) {

        //$v = User::validate(Input::all());

        $email = $request->input('email');;

        //if ( $v->passes() ) {  

            $user = new User;
            $user->email = $email;
            $user->save();

        //}

        return $email;

    }

}

However, when I run this, I get the following error (specifically in complaint of this line: $user = new User; :

[2015-07-06 19:50:56] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'App\Http\Controllers\User' not found' in /home/vagrant/code/vidvalize/app/Http/Controllers/UserController.php:23
Stack trace:
#0 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(127): Symfony\Component\Debug\Exception\FatalErrorException->__construct()
#1 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(112): Illuminate\Foundation\Bootstrap\HandleExceptions->fatalExceptionFromError()
#2 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(0): Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()
#3 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(255): App\Http\Controllers\UserController->store()
#4 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(255): call_user_func_array:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:255}()
#5 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(163): Illuminate\Routing\Controller->callAction()
#6 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(111): Illuminate\Routing\ControllerDispatcher->call()
#7 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}()
#8 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:139}()
#9 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#10 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103}()
#11 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(113): Illuminate\Pipeline\Pipeline->then()
#12 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(68): Illuminate\Routing\ControllerDispatcher->callWithinStack()
#13 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/Route.php(200): Illuminate\Routing\ControllerDispatcher->dispatch()
#14 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/Route.php(133): Illuminate\Routing\Route->runWithCustomDispatcher()
#15 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/Router.php(702): Illuminate\Routing\Route->run()
#16 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#17 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:139}()
#18 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#19 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103}()
#20 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/Router.php(704): Illuminate\Pipeline\Pipeline->then()
#21 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/Router.php(669): Illuminate\Routing\Router->runRouteWithinStack()
#22 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Routing/Router.php(629): Illuminate\Routing\Router->dispatchToRoute()
#23 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(229): Illuminate\Routing\Router->dispatch()
#24 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()
#25 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:139}()
#26 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#27 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()
#28 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#29 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(54): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#30 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Illuminate\View\Middleware\ShareErrorsFromSession->handle()
#31 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#32 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(61): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#33 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Illuminate\Session\Middleware\StartSession->handle()
#34 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#35 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#36 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
#37 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#38 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#39 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Illuminate\Cookie\Middleware\EncryptCookies->handle()
#40 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#41 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(42): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#42 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle()
#43 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#44 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#45 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func:{/home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103}()
#46 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(118): Illuminate\Pipeline\Pipeline->then()
#47 /home/vagrant/code/vidvalize/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(86): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#48 /home/vagrant/code/vidvalize/public/index.php(54): Illuminate\Foundation\Http\Kernel->handle()
#49 /home/vagrant/code/vidvalize/public/index.php(0): {main}()
#50 {main}  

What is happening here? Why isn't this working?

02 Jul
3 years ago

penguinfeet left a reply on Failed To Load Resource: The Server Responded With A Status Of 500 (Internal Server Error)

So I set this up like this:

">

$.ajaxSetup({ headers: { 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content') } });

request = $.ajax({ url: "/user", type: "post", success:function(data){ }, data: {'email': email} ,beforeSend: function(data){console.log(data);} });

This is still not working. Same error.

01 Jul
3 years ago

penguinfeet started a new conversation Failed To Load Resource: The Server Responded With A Status Of 500 (Internal Server Error)

I am trying to run an Ajax call using a basic user resource to store some input data. However, try as I might, I cannot seem to get beyond this 500 ISE. Here is the call (within a React.js function):

saveAndContinue: function(e) { e.preventDefault()

// Get values via this.refs

email = this.refs.email.getDOMNode().value
this.setState({email: email})
this.setState({submitted: !this.state.submitted});

request = $.ajax({ 
      url: "/user", 
      type: "post", success:function(data){
      }, 
      data: {'email': email} ,beforeSend: function(data){console.log(data);} 
});

}

My Controller (UserController.php):

use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Routing\Controller;

class UserController extends Controller {

/**
 * Store user info.
 *
 * 
 * @return Response
 */
public function store() {

    $v = Fan::validate(Input::all());

    $email = Input::get('email');

    if ( $v->passes() ) {  

        $user = new User;
        $user->email = Input::get('email');
        $user->save();

    }

    return $email;

}

}

I am using the model that comes pre-baked with Laravel 5.

The route to set up the resource is:

Route::resource('user', 'UserController');

This is extraordinarily frustrating. What could I possibly be doing wrong? I suspect this is something to do with Laravel 5 syntax (in my controller or something else) that is causing this error. Thank you in advance for your help!

22 Jun
3 years ago

penguinfeet left a reply on 502 Bad Gateway - Nginx/1.6.1

Hmm, so it seems that when I use the default "welcome" view that comes with a fresh install of Laravel 5 it works fine. But when I try to use my route (landing.blade.php), it gives me the bad gateway. My route is using HTML, but I added HTML in the composer.json and the providers/aliases arrays. Not sure why it wouldn't be working

penguinfeet left a reply on 502 Bad Gateway - Nginx/1.6.1

2015/06/23 01:19:51 [error] 1692#0: *1 FastCGI sent in stderr: ") /home/vagrant$ PHP message: PHP 22. call_user_func_array:{/home/vagrant/code/thislaravel5site/vendor$ PHP message: PHP 23. Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->ha$ PHP message: PHP 24. Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closur$ PHP message: PHP 25. call_user_func:{/home/vagrant/code/thislaravel5site/vendor/larav$ PHP message: PHP 26. Illuminate\Foundation\Http\Kernel->Illuminate\Foundation$ PHP message: PHP 27. Illuminate\Routing\Router->dispatch() /home/vagrant/code/$ PHP message: PHP 28. Illuminate\Routing\Router->dispatchToRoute() /home/vagran$ PHP message: PHP 29. Illuminate\Routing\Router->runRouteWithinStack() /home/va$ PHP message: PHP 30. Illuminate\Pipeline\Pipeline->then() /home/vagrant/code/v$ PHP message: PHP 31. call_user_func:{/home/vagrant/code/thislaravel5site/vendor/larav$ 2015/06/23 01:19:51 [error] 1692#0: *1 upstream sent too big header while readi$

penguinfeet left a reply on 502 Bad Gateway - Nginx/1.6.1

So I got into sites-enabled on the path you showed. However, I'm not seeing several config files. I am seeing the proxy names of the two sites I have (thislaravel4site.dev and thislaravel5site.dev). I can't cd into either.

When I use the vi command to open thislaravel5site.dev, I get:

vi thislaravel5site.dev

location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt  { access_log off; log_not_found off; }

access_log off;
error_log  /var/log/nginx/thislaravel5site.dev-error.log error;

error_page 404 /index.php;

sendfile off;

location ~ \.php$ {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    include fastcgi_params;
}

location ~ /\.ht {
    deny all;
}

}

penguinfeet left a reply on Laravel 5 Installation - Runtime Exception In Compiled.php Line 6911

@meetgodhani Just use a fake key with 32 characters like the one above in your .env file and in your config/app.php file. It will work.

21 Jun
3 years ago

penguinfeet started a new conversation 502 Bad Gateway - Nginx/1.6.1

Hi guys,

I have a Laravel 4 and a Laravel 5 project running on Homestead with Vagrant on my local machine. I was able to get them both working, but when I tried to add packages, I had to update php. I updated the php on my machine, and now when I type php -v in the shell, it is: PHP 5.6.9.

Now when I vagrant up and navigate to my projects, the Laravel 4 project is working fine, but for the Laravel 5 project, I am getting:

502 Bad Gateway nginx/1.6.1

This was working just fine before this upgrade/change.

Is there anything I need to change or do to fix this? Thank you!

20 Jun
3 years ago

penguinfeet started a new conversation SSH Into Forge With Public SSH Key - Permission Denied (publickey).

Hi guys,

I am trying to follow along with the Laracast here:

https://laracasts.com/series/server-management-with-forge/episodes/4

However, I am running into trouble. No matter what I've done, I run into the error:

Permission denied (publickey).

I have tried creating a public SSH key on my machine using:

ssh-keygen -t rsa -C "my_email@gmail.com"

I save it like so:

/Users/**********/.ssh/somekey

which generates an identification: somekey and a public key: somekey.pub

Then I use the command:

cat ~/.ssh/somekey.pub| pbcopy

to copy the key and then I put it in my SSH keys on my server in forge.

However, when I use the command: ssh forge@forge_ip_address

I get the same error: Permission denied (publickey).

Is there something I can do? Thank you!

penguinfeet left a reply on Laravel 5 Deployment On Laravel Forge

So what values should I set in the environment tab on forge?

19 Jun
3 years ago

penguinfeet started a new conversation Laravel 5 Deployment On Laravel Forge

I am trying to deploy a fresh Laravel 5 project that I have working on my local environment with Homestead. However, when I try to deploy the project on Forge, I get this error:

[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO)

I have a .env file in the project root that looks like this:

APP_ENV=local APP_DEBUG=true APP_KEY=******************************

DB_HOST=localhost DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret

CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync

MAIL_DRIVER=smtp MAIL_HOST=mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null

Do I need to change this for production or add another .env file on the server? Thank you!

17 Jun
4 years ago

penguinfeet left a reply on Laravel 5 Installation - Runtime Exception In Compiled.php Line 6911

It is set to SomeRandomString (in the .env file and in the app.php file), the command is just not over writing it. Very strange. I'll just type in a random key.

penguinfeet left a reply on Laravel 5 Installation - Runtime Exception In Compiled.php Line 6911

@mstnorris So looking in my config/app.php file, the 'ciper' line is already in there. When I run php artisan key:generate, the APP_KEY is not changing...It stays as the default SomeString. Any idea what may be happening?

penguinfeet started a new conversation Laravel 5 Installation - Runtime Exception In Compiled.php Line 6911

Hi guys,

I ran a fresh install of a Laravel 5 project and I am trying to get it set up with Homstead. However, it is giving me the below error (about the cipher/key). I went into the .env file and changed the app key = to the default one (AES-256-CBC), but still not working. Do you have any idea what might be happening? Thank you!

Whoops, looks like something went wrong.

1/1 RuntimeException in compiled.php line 6911: No supported encrypter found. The cipher and / or key length are invalid. in compiled.php line 6911 at EncryptionServiceProvider->Illuminate\Encryption{closure}(object(Application), array()) in compiled.php line 1057 at Container->build(object(Closure), array()) in compiled.php line 1010 at Container->make('encrypter', array()) in compiled.php line 1537 at Application->make('Illuminate\Contracts\Encryption\Encrypter') in compiled.php line 1102 at Container->resolveClass(object(ReflectionParameter)) in compiled.php line 1086 at Container->getDependencies(array(object(ReflectionParameter)), array()) in compiled.php line 1072 at Container->build('App\Http\Middleware\EncryptCookies', array()) in compiled.php line 1010 at Container->make('App\Http\Middleware\EncryptCookies', array()) in compiled.php line 1537 at Application->make('App\Http\Middleware\EncryptCookies') in compiled.php line 9400 at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in compiled.php line 2659 at CheckForMaintenanceMode->handle(object(Request), object(Closure)) at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9400 at Pipeline->Illuminate\Pipeline{closure}(object(Request)) at call_user_func(object(Closure), object(Request)) in compiled.php line 9390 at Pipeline->then(object(Closure)) in compiled.php line 1999 at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 1985 at Kernel->handle(object(Request)) in index.php line 54