skaisser

Member Since 3 Years Ago

Minas Gerais

CEO at Grupo Kaiser

Experience Points 38,120
Experience Level 8

1,880 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 475
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.

19 Dec
1 year ago

skaisser left a reply on Laravel Queues On Google Cloud App Engine Flexible

The tutorial does not offer queues, But i've managed to make it work with supervisord.

Thanks ;)

30 Nov
1 year ago

skaisser started a new conversation Laravel Queues On Google Cloud App Engine Flexible

Has anyone had any success implementing google cloud task queues with laravel?

Ive been banging my head for two days trying to get this to work, and i get

Remote implementation for taskqueue.BulkAdd failed

Anyone can help me?

11 Jul
2 years ago

skaisser left a reply on Saas Tutorial?

This would be awesome @JeffreyWay !

05 May
2 years ago

skaisser left a reply on Why Aren't My Posts Showing?

Instead of

return view('dashboard.index', ['posts' => $posts])
            ->with('user', $user);

Try

return view('dashboard.index',  compact('posts','user');
30 Apr
2 years ago

skaisser started a new conversation DB::transaction With Multiple Model Create Returns Exception

Hey Friends,

I'am trying to implement a DB::transaction in one of my apps, And it needs to perform 3 inserts in the same database but with different data So its trying to do this

$dd = ['afiliado_id'  => $pagador->id,
                 'tabela_origem' => 'afiliados',
                 'id_origem' => $recebedor->id];
            $debito = Extrato::firstOrCreate($dd);
            $debito->tipo = 0;
            $debito->descricao = "Transferencia para $recebedor->email";
            $debito->valor = $valor;
            $debito->save();

         $dc = ['afiliado_id'  => $recebedor->id,
                 'tabela_origem' => 'afiliados',
                 'id_origem' => $pagador->id];
            $credito = Extrato::firstOrCreate($dc);
            $credito->tipo = 1;
            $credito->descricao = "Transferencia de $pagador->email";
            $credito->valor = $valor;
            $credito->save();

          
          $dt = ['afiliado_id'  => $recebedor->id,
                 'tabela_origem' => 'tarifa_afiliados',
                 'id_origem' => $pagador->id];
            $tarifa = Extrato::firstOrCreate($dt);
            $tarifa->tipo = 0;
            $tarifa->descricao = "Tarifa Transferência de $pagador->email";
            $tarifa->valor = $tarifa;
            $tarifa->save();

But what i get is:

#message: "Method App\Extrato::__toString() must return a string value" #code: 0 #file: "/home/vagrant/Code/anuncii.dev/vendor/laravel/framework/src/Illuminate/Support/helpers.php" #line: 740 #severity: E_RECOVERABLE_ERROR

This are all inside a DB transaction and i cant get a clue of whats wrong, i looked at the helpers.php and it looks like its trying to perform a preg_replace()

Thanks in advance for all replys (if any)

11 Apr
2 years ago

skaisser left a reply on Laravel Ssh Remote

I am amazed, thank you, I'm going to try this out now! I believe it will work!

skaisser started a new conversation Laravel Ssh Remote

Hey friends, I've been suffering trying to make my laravel app execute ssh commands on a remote server kind of what laravel forge does.

I've searched github and a lot of other places and can't find a solution :(

Could anyone please help me by pointing the way? I want to build a simple hosting app kind of like forge but for non developers so it won't have hit deploy and all that!

Thanks in advance for any replies!

03 Feb
3 years ago

skaisser started a new conversation Laravel SSL Routes

Hey Guys,

I've forced ssl with Laravel Forge, But the laravel application route('routename') still generates url as http:// I updated app/config.php still no luck.

Any one had this experience?

01 Feb
3 years ago

skaisser left a reply on First Or Create Result

Thank you @trs_uk Exactly what i was looking for, I knew laravel had this somewhere.

skaisser started a new conversation First Or Create Result

Hey Guys!

Whe you use first or create function from eloquent, Is there a way to know if the data was persisted or located?

Example:

 $dadosPagamento = [
                    'pedidos_id' => $pedido->id,
                    'meio_pagamento' => 'Asaas',
                    'codigo_pagamento' => $idAsaas,
                    'valor' => $valor
                    ];
                    $pagamento = Pagamento::firstOrCreate($dadosPagamento);

I wanted to know if the item was created, if it was created i would update my slack channel, If it was only found i would ignore it.

Cheers!

07 Jan
3 years ago

skaisser left a reply on Is There An Easier Way To Migrate Provider?

Thank you @devtraining done! Moved out of linode.

skaisser started a new conversation Is There An Easier Way To Migrate Provider?

Hey Guys,

I have a couple of servers on forge, all on digital ocean, and i decided to try linode a couple of months ago.

Linode is dead, Everyday a different issue, And i have a server there with laravel forge about 70 websites,

Is there an easier way to move all of them to another or new laravel forge server on digital ocean bettern than one by one?

Thanks in advance.

18 Nov
3 years ago

skaisser started a new conversation Notify Slack Chanel On Exception

Hello Guys,

I Curently run an Ecommerce entirely built in Laravel, And sometimes, there are some changes that ends up generating some erros.

I use an awesome Slack Laravel api wich works fantastic, I wonder,

Where should i put my slack notification, so that in case i get any errors from the application (whoops) it can notify me on my slack, with relevant info on the error so i can get to it ASAP?

Cheers

01 Nov
3 years ago

skaisser left a reply on Anyone Having Problem With Forge/Envoyer Today?

Thanks man, just saw it on their website, :(

I was in the midle of a scaling, Over 5k online user on my app lol...

Things are going crazy here!

Thanks for the help.

skaisser left a reply on Anyone Having Problem With Forge/Envoyer Today?

Thanks @christopher its down for me right now :(

skaisser started a new conversation Anyone Having Problem With Forge/Envoyer Today?

It seams to becoming offline all the time here.

It's not just you! http://forge.laravel.com looks down from here.

25 Oct
3 years ago

skaisser started a new conversation [WhereBetween] - Retrieve Data Between Two Dates From Timestamp Column

Hello Guys.

Im having trouble to retrieve data from the database using eloquent, I am trying to retrieve all data between two dates (created_at field).

I've Done This:

 public function    __construct()
        {
            $this->datai = Carbon::now()->subDays(3);
            $this->dataf = Carbon::now();
        }

    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    { 
        $dataInicio = $this->datai->format('Y-m-d')." 00:00:00";
        $dataFim    = $this->datai->format('Y-m-d')." 23:59:59";
        $pedidos = DB::table('pedidos')
                    ->whereBetween('created_at', [$dataInicio, $dataFim])->get();
    }

I Don't Think it is a smart way to do this, maybe i am missing something, Could you please help?

17 Sep
3 years ago

skaisser left a reply on User E-mail Confirmation On Signup.

@bugsysha I was thinking the same, That when update the laravel, i might lose this.

Ill try to write my first midleware to solve this!

15 Sep
3 years ago

skaisser left a reply on Videos On Mobile Not Working

For me some works some doesnt, using an android phone and also tried on a tablet.

Mostly laravel 5 fundamentals starts with ogres are like Middleware

skaisser started a new conversation User E-mail Confirmation On Signup.

Hey guys,

I've successfully been able to send an e-mail with a confirmation code to my user, and once that's confirmed it updates the column confirmed at the database with is a Boolean.

But, on laravel 5.1 i cant seem to block the user who did not confirmed their e-mail to login. I am trying to modify my Iluminate AuthenticatesUsers file, but i cant get it to work.

´´´ public function postLogin(Request $request) { $this->validate($request, [ $this->loginUsername() => 'required', 'password' => 'required', ]);

    // If the class is using the ThrottlesLogins trait, we can automatically throttle
    // the login attempts for this application. We'll key this by the username and
    // the IP address of the client making these requests into this application.
    $throttles = $this->isUsingThrottlesLoginsTrait();

    if ($throttles && $this->hasTooManyLoginAttempts($request)) {
        return $this->sendLockoutResponse($request);
    }

    $credentials = $this->getCredentials($request);

    if (Auth::attempt($credentials, $request->has('remember'))) {
        return $this->handleUserWasAuthenticated($request, $throttles);
    }

    // If the login attempt was unsuccessful we will increment the number of attempts
    // to login and redirect the user back to the login form. Of course, when this
    // user surpasses their maximum number of attempts they will get locked out.
    if ($throttles) {
        $this->incrementLoginAttempts($request);
    }

    return redirect($this->loginPath())
        ->withInput($request->only($this->loginUsername(), 'remember'))
        ->withErrors([
            $this->loginUsername() => $this->getFailedLoginMessage(),
        ]);
}

´´´

My Users table, has the confirmed. but i want the user only to login if the database Confirmed is 1, if not i want to validate a message telling the user to validate their e-mail before they can login.

I think this is important to other users also, And i've search all over google, but only found articles for laravel 4, i even tried to do it folowing the logic, but didnt go trough.

Thanks in advance

14 Sep
3 years ago

skaisser left a reply on Shared Host That Can Run Laravel 5.1 Suggestions

The problem is not the JUST, the hosting,

You are able to host it on cPanel with a few tweaks, but shared hosting would not permit you to install composer.

So you would have to upload everything (including the vendors);

So i believe its possible,.

skaisser left a reply on Help With Model::create($request->all());

Fixed it!

It Was missing the [] on the array.

:D

Correct Code:

$request->merge(
                    ['pai' => $request->session()->get('idPai'),
                    'avo' => $request->session()->get('idAvo')]
            );

skaisser left a reply on Help With Model::create($request->all());

I've Implemented this morning, But i am now getting:

FatalErrorException in SiteController.php line 19: syntax error, unexpected '=>' (T_DOUBLE_ARROW)

I think i am missing something here, The line 19 is the 'pai' =>

This is how my function looks.

´´ public function cadastrar (cadastroRequest $request) {

       $request->merge(
                'pai' => $request->session()->get('idPai'),
                'avo' => $request->session()->get('idAvo'),
        );

        Afiliado::create($request->all());
        \Session::flash('sucesso', true);
        return redirect('cadastre-se');
        
    }

´´´´

13 Sep
3 years ago

skaisser left a reply on Help With Model::create($request->all());

Cant thank u enough. Exatcly this.

skaisser started a new conversation Help With Model::create($request->all());

Hi Guys,

I Remember Jeffrey having to add values from a session to the request->all array before it creates the value on the database, i've searched a lot of videos, and could find it.

Can anyone help?

So i am trying to do this:

Afiliado::create($request->all()); \Session::flash('sucesso', true); return redirect('cadastre-se');

But, there is two fields missing, one called pai and one called avo. They are stored in the session, and i can access them on: session()->get('idPai') and session()->get('idAvo');

I Created this:

$campos = $request->all();
        $campos2 = array_add($campos, 'pai', \session()->get('idPai'));
        $campos3 = array_add($campos2, 'avo', \session()->get('idAvo'));

it works but doesn't look beautiful.

12 Sep
3 years ago
08 Sep
3 years ago

skaisser left a reply on Download Tutorial Source Code

I agree with you guys on the coding along. But have u guys seen the dmca app? He builds it like a machine lol.

I only hope to write as fast one day. I tried keeping along but no success cauz i had to pause every 10 seconds. Lol.

Ive also checked github and found some of the screencast apps there. This helps a lot thank u all for taking a time to point it out.

Cheers

skaisser started a new conversation Download Tutorial Source Code

I am very satisfied with the lessons from Laracast, And happy with my subscription,

Unfortunately i find my self coming back to the same lesson to remember how Jeffrey did something on a specific situation,

This would not be necessary if there was an option to download the source code of the tutorial project.

For example:

I just finished the First App series, And there's a ton of information that makes me come back all the time.

This would make it easier for the users, And would save a ton of bandwidth. :D

Let me know if it gets implemented.