angelorigo

angelorigo

Member Since 3 Years Ago

Porto Alegre/RS/Brasil

Programmer at DBC Company

Experience Points 18,870
Experience Level 4

1,130 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 182
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.

29 May
2 weeks ago

angelorigo left a reply on Nuxtjs And Lumen API

Great! what content or what methods, did you have in your SPAController ?

07 May
1 month ago

angelorigo left a reply on Nuxtjs And Lumen API

I do enroll at this course, thank's for the advice, i have seen this integration creating an api folder at the root of the nuxtjs and then configuring the api into nuxtjs.config. How do you prefer to set up ? installing Laravel and then creating a Nuxtjs at the Laravel root folder ?

19 Apr
1 month ago

angelorigo started a new conversation Nuxtjs And Lumen API

Hi,

Would be nice to have a series of videos about constructing an application using Lumen as API and NuxtJs as the front end.

05 Feb
4 months ago

angelorigo started a new conversation Permissions On Linux Ubuntu

Hi,

I try to install laravel on my Linux Ubuntu machine using :

composer create-project laravel/laravel mysite

I do get theses error messages :

file_put_contents(/home/myuser/.composer/cache/repo/https---packagist.org/p-provider-2016.json): failed to open stream: Permission denied http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date Installing laravel/laravel (v5.7.19)

[ErrorException] mkdir(): Permission denied

How can i set permissions on linux to properly install laravel ?

23 Jan
2 years ago

angelorigo left a reply on Where Are You All From?

Porto Alegre, Brasil land of the yearly event, International Free Software Forum

28 Dec
2 years ago

angelorigo started a new conversation Scroll To Result List After Form Submit With Vue

Hi

I have a form with many fields and would like to scroll to the result list, just below the form fields, after the form submission.

How can it be done with Vue ?

I try with Jquery but did not work :

$(document).ready(function (){ $('#form').submit(function(){ $('html, body').animate({ scrollTop: $("#table-list").offset().top }, 1000); }); });
23 Dec
3 years ago

angelorigo left a reply on Using Middlewares To Detect Sessions From Cakephp

I would ask you how ! what would be the design of a RESTApi ?

I have made only one RESTApi into Laravel until today.

My goal is to login into cake and maintain the same user logged in into Laravel

angelorigo started a new conversation Using Middlewares To Detect Sessions From Cakephp

Hi

How can middlewares be used to detect, in specific routes, if there is an active session from cakePHP?

My goal is to extract the user id from CakePHP session and them force the Laravel Login and Laravel Sesison as i am migrating module by module a CakePHp app to laravel.

17 Dec
3 years ago

angelorigo left a reply on Class Log Not Found Into A PHP7 Server While Running Composer Install

I try with php -m i see mbstring and openssl in the modules list

angelorigo started a new conversation Class Log Not Found Into A PHP7 Server While Running Composer Install

Hello!

I try to git clone a laravel app into a php 7 using nginx webserver.

The class Log was not found, i check and the class is there !

This was while runnnig a composer install.

[RuntimeException] Error Output: PHP Fatal error: Uncaught ReflectionException: Class log does not exist in /nginx/myapp/vendor/larave l/framework/src/Illuminate/Container/Container.php:737

Stack trace: #0 /nginx/myapp/vendor/laravel/framework/src/Illuminate/Container/Container.php(737): ReflectionClass->__construct(' log')

#1 /nginx/myapp/vendor/laravel/framework/src/Illuminate/Container/Container.php(627): Illuminate\Container\Container ->build('log', Array)

#2 /nginx/myapp/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Contai ner->make('log', Array)

#3 /nginx/myapp/vendor/laravel/framework/src/Illuminate/Container/Container.php(838): Illuminate\Foundation\Applicat ion->make('log')

#4 /nginx/myapp/vendor/laravel/framework/src/Illuminate/Container/Container.php(801): Illuminate\Container\Container ->resolveClass(Object(ReflectionParameter))

#5 /nginx/myapp/vendor/laravel/f in /nginx/myapp/vendor/laravel/framework/src/Illuminate/Contai ner/Container.php on line 737

10 Dec
3 years ago

angelorigo left a reply on Which Keyboard You'd Like To Recommend For Php Programmer?

MS ergonomic keyboard is much better than my previous keyboards. Very confortable.

09 Dec
3 years ago

angelorigo left a reply on Reading CakePHp Session Into Laravel And Authenticating Into Laravel

If i var_dump($_SESSION) inside a blade template or a controller gives me the error: Undefined variable: _SESSION

HEre is what i try and the output: <?php var_dump($_SESSION); ?> {{ dd( \Session::get('user') ) }} null {{ dd( \Session::all() ) }} a encripted token {{ dd( Auth::check() ) }} false

angelorigo left a reply on Reading CakePHp Session Into Laravel And Authenticating Into Laravel

Can i use Laravel events to see if the request is coming from a know cakephp route ? and fire the laravel auth ?

08 Dec
3 years ago

angelorigo left a reply on Reading CakePHp Session Into Laravel And Authenticating Into Laravel

It is not possible to read $_SESSION inside a controller : $cakeSession = $_SESSION['CAKEPHP']; gives the an error exception cannot read _SESSION variable

angelorigo left a reply on Reading CakePHp Session Into Laravel And Authenticating Into Laravel

I can see the CAKEPHP session id maybe will try $session_id = Session::getId(); to start. Will try to rread $_SESSION .

angelorigo started a new conversation Reading CakePHp Session Into Laravel And Authenticating Into Laravel

Hi

I am redirecting from cakePHP 2.5 to Laravel 5.1 app and need to share the authentication maintaining the same user logged in into both cakePHP and Laravel.

The session is stored on Memcached.

How can i read the cakePHP session and authenticate into Laravel ?

I redirect with this hacking at cakePHP Webroot/index.php using the PHP native header function, can i pass aditional needed data using header?:

App::uses('LaravelController','Controller');
$Laravel = new LaravelController();
if( $Laravel->faq() != "" ){
      header("Location: http://www.laravelapp.com/faq");
} else {
        App::uses('Dispatcher', 'Routing');
        $Dispatcher = new Dispatcher();
        $Dispatcher->dispatch(
                new CakeRequest(),
                new CakeResponse()
        );
}
02 Dec
3 years ago

angelorigo left a reply on Can Laravel And Cakephp Coexist Into A Long Transition From Cakephp To Laravel ?

Actually what make it work´s, from cakephp route to laravel, is usign exit and header inside the controller : exit( header( 'Location: http://localhost/crono-oficial/public' ) ); maybe there is a better way .

angelorigo left a reply on Can Laravel And Cakephp Coexist Into A Long Transition From Cakephp To Laravel ?

i try with a header into controller: did not work : class LaravelController extends AppController { public function index() { header('Location: http://localhost/mylaravelapp/public'); } }

angelorigo left a reply on Can Laravel And Cakephp Coexist Into A Long Transition From Cakephp To Laravel ?

Great point!! seems the best starting point, to start getting some order in the chaos .

angelorigo left a reply on Can Laravel And Cakephp Coexist Into A Long Transition From Cakephp To Laravel ?

Yes @MikeHopley very useful! thank´s!

I will try to create new funcionalities only into laravel so i am thinking about how routing .

May i try to use a simple header function inside a controller ?

I will try to search a better way into : http://laravel.com/docs/5.1/responses

30 Nov
3 years ago

angelorigo left a reply on Can Laravel And Cakephp Coexist Into A Long Transition From Cakephp To Laravel ?

Hi, being a huge app, cakephp start to make it much time consuming to develop new features.

Development into Laravel using Domain Driven Design, interfaces, contracts, traits and repositories prove to be so much secure, clear and fast .

The app is constantly changing with new features, so a complete rewrite is not an option the client just can not wait, so we change to laravel or stick with cakephp forever .

I can imagine the problems appearing at session, auth. We have a trait to check if there is a session (could be cake session)

I can imagine a way to route from cake to laravel and vice versa otherwise th

Also we are working into the same database.

Any ideas would be welcome

angelorigo started a new conversation Can Laravel And Cakephp Coexist Into A Long Transition From Cakephp To Laravel ?

Hi

I have the task to migrate a legacy application from cakephp to laravel .

The two must coexist during the transition that will migrate module by module and them turn off cakephp at the end.

Is it possible ? how can the laravel route redirect to cakephp and vice versa ? wich pitfalls can happen during thiso transition ?

thank´s in advance

27 Nov
3 years ago

angelorigo left a reply on How Can I Add Vue Alert At Laravel Submit Form Button ?

Thank you @tinymondo and @JoeDawson i do find places in my app where i need to use both ways .

angelorigo left a reply on Change Background Color If There Is An Error

Thank you @kfirba for show me the way

Did not know about this feature.

this works fine :

angelorigo started a new conversation Change Background Color If There Is An Error

Hi

I am trying to change a input type text background if there is a form submission error for that field :

{!! Form::text('phone', $employee->phone, ['autofocus', 'class' => ''])  !!}
    @if (count($errors) > 0)
      <span style="color:red">
              {!! $errors->first('phone') !!}
         </span>
     @endif

I try to insert into the class diretive but it does not work :

 {!! Form::text('phone', $employee->phone, ['autofocus', 'class' => '@if (count($errors) > 0 && $errors->first('phone')) background-color:red;  @endif'])  !!}
    There is a way to change the background color if there is an error ?
26 Nov
3 years ago

angelorigo started a new conversation Error Code : 1747 Error Message : ORA-01747 Invalid Colun.table Position

Hi

Using domain driven design i have a repository class wich call update method receiving an employee object

For the insert method everything runs fine but for the update method i do get this Oracle message : Position : 29 Statement : update employees set Bindings : [] ...

How can i run toSql method, or how can i see and correct the query ?

Seems to me everything is in place and can not find what trigger this error

My code :

Domain\employee\repository public function updateEmployee( Employee $employee ) { dd($employee); dd($this->model->update()->toSql()); return $this->model->update(); }

App\controllers public function postFormUpdateEmployee( EmployeeFormRequest $request ) { $employee = app( Employee::class ); $employee->id = $request->input('id'); $employee->name = $request->input('name'); $employee->email = $request->input('email'); $employee->phone = $request->input('phone'); $employee->category_id = $request->input('category_id'); $employee->created = $request->input('created'); $employee->created_by = $request->input('created_by'); $employee->created_ip = $request->input('created_ip'); $employee->modified = Carbon::now(); $employee->modified_ip = Request::getClientIp(true); $employee->modified_by = \Session::get('user')->id; $this->employeeRepository->updateEmployee($employee); return view('employee.update_form', compact('employee')); }

Thank´s in advance

angelorigo started a new conversation How Can I Add Vue Alert At Laravel Submit Form Button ?

Hi

I just want to add : v-on:click="say('hi')" into a submit button using laravel blade forms : {!! Form::submit('Add', ['class' => 'btn btn-default']) !!}

Must be pretty easy but i can not find the right way , just get syntax errors until now.

new Vue({ el: '#example-2', methods: { say: function (msg) { alert(msg) } } })