Carlos_rsd

Carlos_rsd

Member Since 1 Year Ago

Resende-RJ

systems analytic and developer at Prefeitura Municipal de Resende

Experience Points 260
Experience Level 1

4,740 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 0
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.

04 Oct
8 months ago

Carlos_rsd left a reply on Query With Count And GroupBy

Thanks Brother!!!

It´s done!

24 Sep
8 months ago

Carlos_rsd started a new conversation Query With Count And GroupBy

Good afternoon. I have the following tables: one for students, one for the regions where students live, they are related through the IdRegioes field.

I would like to bring the data on student counts by region, according to some criteria to be displayed in my summary view, using SQL in the database I would have the following query:

SELECT i.regioes_idregioes, r.regiao, COUNT(i.regioes_idregioes) AS quantidade FROM inscricoes as i, regioes as r WHERE i.Regioes_IdRegioes = r.IdRegiao and i.Atendido ='N' and i.Evadido = 'N' and i.Desistente = 'N' and i.DataNascimento >= '2015-03-31' GROUP BY i.regioes_idregioes;

When transporting this query to an Eloquent template I did the following:

$TotInscRegioes = Inscricao::selectRaw('inscricoes.Regioes_IdRegioes',['count(*) as TotRegiao'],'Regioes.Regiao') ->join('Regioes','inscricoes.Regioes_IdRegioes','=','Regioes.IdRegiao') ->where('Atendido','N')->where('Desistente','N')->where('Evadido','N') ->where('DataNascimento','>=',$dataLimite) ->groupBy('inscricoes.Regioes_IdRegioes','Regioes.Regiao') ->get();

However, I always get the general total of students and not the counting by region. I already researched several and I can not find a way out, have you ever had a situation like this? What was the solution you found?

Note: I have already tried using select and putting -> count () at the end and even then the data did not come apart.

Thank you for help.

12 Aug
10 months ago

Carlos_rsd left a reply on New Users Using RegisterController Manually

Thanks a lot @martinbean and @Snapey this is what I did.

Thank you all.

Carlos_rsd left a reply on New Users Using RegisterController Manually

Hi jlrdw. What I wanted was to allow only the administrator to manipulate the data of registered users in the application. Seeing more I could do this using the concept of authorization policies.

11 Aug
10 months ago

Carlos_rsd started a new conversation New Users Using RegisterController Manually

Friends, I need help. I created the authentication process in laravel 5.6 with php artisan make: auth, so far so good, it works wonderfully, I log in, log in, and create a new user with the register link. But, now I need to allow the admin user to register users in the system being logged in. I changed the __construct of the RegisterController to allow to view the user registration form for already authenticated users, changing the code to: $ this-> middleware ('auth') ;. It worked perfectly again, but after including a new registry the application automatically logs in this new registry and I did not want this behavior, I would like to change the behavior so that after inclusion the application kept the admin user logged in and was directed to another view. I'm all day looking for a solution and all the links I found no solution solved. What can I do to achieve this or can not be done?

Thanks for the help and excuse me for the long text.

18 Jul
11 months ago

Carlos_rsd left a reply on Ordering With Eloquent

Thank you so much for your help, stay with God.

Carlos_rsd started a new conversation Ordering With Eloquent

How to do the ordering in laravel by more than one field with the orderby () method? I have a query that should show the results ordered by the field TotalPoints and Birth, however, I can only do with one of the fields. See below:

$inscritos = Inscricao::join('Regioes','inscricoes.Regioes_IdRegioes','=','Regioes.IdRegiao') ->join('Turmas','inscricoes.Turmas_IdTurmas', '=' ,'turmas.IdTurmas')->where('Regioes_IdRegioes',$reg)->where('Atendido','N')->orderby('TotalPontos','Desc')->get();

What can I do to resolve this issue?

04 May
1 year ago

Carlos_rsd left a reply on Create A Report With Laravel 5.6 And DB Mysql

OK.

It worked!!! I was able to run the report using jasperreports, however, I did not use the lavela I ended up using the geek at https://github.com/PHPJasper/phpjasper, it worked correctly.

Thanks for your tip and for helping me out. Stay with God and have a great weekend.

Carlos_rsd left a reply on Create A Report With Laravel 5.6 And DB Mysql

The report is for an application, are listings and parameterized reports. The dump solution is not an application that stays with users, so they should be free to print the reports at any time without further interference.

I'll check the link you sent, thank you very much for the help.

03 May
1 year ago

Carlos_rsd started a new conversation Create A Report With Laravel 5.6 And DB Mysql

I need to create reports in pdf using Laravel 5.6 and the Mysql database, how could I do this? I tried using JasperPHP but it does not work right, I used the lavela / phpjasper package, however, it gives some errors that refer to the lack of files during the installation process.

What could you recommend me to do this work correctly?