murilo

murilo

Member Since 4 Years Ago

Ribeirão Preto

Experience Points
32,250
Total
Experience

2,750 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
254
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

Level 7
32,250 XP
Nov
17
1 week ago
Activity icon

Started a new Conversation Laravel Migration Big Integer DropForeign Key

Hello , I have this example of USER AND USER_INFO TABLES - this will works if I migrate -

TABLE USER -

 Schema::create('users', function (Blueprint $table) {
            $table->increments('id');
            $table->string('email')->unique();
            $table->string('password');
  
        });

  public function down()
    {
        Schema::dropIfExists('users');
    }

TABLE USER_INFO -

  Schema::create('user_infos', function (Blueprint $table) {
         
            $table->increments('id');

            $table->string('name');
            $table->string('last_name');

            $table->integer('user_id')->unsigned();
            $table->foreign('user_id')->references('id')->on('users');


            $table->timestamps();
        });

       Schema::table('user_infos', function(Blueprint $table){
            $table->dropForeign('user_infos_user_id_foreign');
        });


        Schema::dropIfExists('user_infos');

BUT IF I USE BIG INCREMENTS IN THE IDS LIKE THIS , WILL NOT WOKS -

TABLE USER -

 Schema::create('users', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('email')->unique();
            $table->string('password');
  
        });

  public function down()
    {
        Schema::dropIfExists('users');
    }

TABLE USER_INFO -

  Schema::create('user_infos', function (Blueprint $table) {
         
            $table->bigIncrements('id');

            $table->string('name');
            $table->string('last_name');

            $table->integer('user_id')->unsigned();
            $table->foreign('user_id')->references('id')->on('users');


            $table->timestamps();
        });

       Schema::table('user_infos', function(Blueprint $table){
            $table->dropForeign('user_infos_user_id_foreign');
        });


        Schema::dropIfExists('user_infos');

It will migrate the table users , but the user_infos table will have an error because of the drop foreign -

table->dropForeign('user_infos_user_id_foreign');

gives this error -

  SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table `user_infos` add constraint `user_infos_user_id_foreign` foreign key (`user_id`) referenc
es `users` (`id`) on delete cascade)

Nov
06
3 weeks ago
Activity icon

Replied to How To Work With Server Side Rendering With Vue 2 + Laravel

has this error

Symfony\Component\ErrorHandler\Error\FatalError
Illuminate\Filesystem\Filesystem::main(): Failed opening required '/var/www/admin/storage/framework/views../vendor/autoload.php' (include_path='.:/usr/local/lib/php')
Activity icon

Replied to How To Work With Server Side Rendering With Vue 2 + Laravel

@rodrigo.pedra Do I need V8Js installed to make it works ? I need help with that so much . It has been 2 weeks that I have been trying to solve that =/

Activity icon

Replied to How To Work With Server Side Rendering With Vue 2 + Laravel

I didnt managed to use this class .

Oct
26
1 month ago
Activity icon

Replied to Extension V8 PHP On Ubuntu How Install

I did this step -

https://github.com/phpv8/php-v8

$ sudo add-apt-repository -y ppa:ondrej/php
$ sudo add-apt-repository -y ppa:pinepain/php
$ sudo apt-get update -y
$ sudo apt-get install -y php7.4 php-v8

then -

$ php --ri v8
show this error
Extension 'v8' not present.


Activity icon

Replied to Extension V8 PHP On Ubuntu How Install

hello @gitwithravish , It didnt work . maybe becose it is php 7.4 .

I did like that -

apt-get install php-pear php5-dev libv8-dev g++ cpp
pecl install v8js-0.1.3

OPEN PHP INI - 
sudo nano /etc/php/7.4/fpm/php.ini

and added the line -
extension=v8js.so

restart services 
sudo service nginx restart && service php7.4-fpm restart


Now test -
V8
v8: command not found
or 

$v8 = new V8Js();

-bash: syntax error near unexpected token `('


Activity icon

Started a new Conversation Vue Single Application Size File , What Would Be A Good Size For A Application / Website ?

Hello , I have been working in a project that is a Sigle Application with VUE . But It is taking a long time to load it .

  • The application has 2.000 KB .
  • It is taking 1 minute and 20 seconds to load the application / website .

The application it is hosted in other country , maybe it takes a short time if it in a host that is closest to me . Does have any server that provides a faster download of a application that it is not to expensive ? what would be a good size of a Vue application ( JS File )?

Oct
25
1 month ago
Activity icon

Replied to How To Work With Server Side Rendering With Vue 2 + Laravel

@rodrigo.pedra , I dont understand , in this class , when says - Set up the NODE_PATH environment variable in your .env file to get started:

NODE_PATH=/path/to/my/node

Do I have to add this in .env ?

Activity icon

Started a new Conversation Extension V8 PHP On Ubuntu How Install

Hello , I have seen this tutorial -

https://www.youtube.com/watch?v=cTwQtmFjYkw

How to use Server Side Rendering with VUE + Laravel .

In this tutorial , he install in his machine ( MAC) , a php Extension , the name is V8 ;

He dont show how to install this on the server , I need install this extension on ubuntu , to make it works .

After he install , this V8 extension , he type the command -

v8

and it shows that the v8 extension was installed .

Well , I tried many things . to install this extension in my ubuntu server , it says that install , but when I type the command v8 it shows the message -

v8: command not found


I saw in this page how to install on ubuntu -

https://php-v8.readthedocs.io/en/latest/getting-started/

I tried -

$ sudo add-apt-repository -y ppa:ondrej/php
$ sudo add-apt-repository -y ppa:pinepain/php
$ sudo apt-get update -y
$ sudo apt-get install -y php7.2 php-v8
$ php --ri v8

I tried as well -

sudo apt update
sudo apt install libv8-dev

but I was no success ,

I tried like that as well -

http://michaellaszlo.com/installing-d8-javascript-shell-linux/

please , some help me . I need make server side rendering works in a VUE + Laravel Project .

Thanks

Activity icon

Replied to How To Work With Server Side Rendering With Vue 2 + Laravel

hello @rodrigo.pedra , does have any video using that ? It is a lithe bit hard to understand .

Oct
24
1 month ago
Activity icon

Started a new Conversation How To Work With Server Side Rendering With Vue 2 + Laravel

Hello , I have been working with VUE Single Page Applications . I would like to know what is the best way to work with server side rendering inside VUE 2 + Laravel .

I have seen this Video - https://www.youtube.com/watch?v=cTwQtmFjYkw

He uses a V8 php extension + vue-server-renderer ( extension VUE ) .

But I didnt managed to install the V8 extension inside my local machine ( docker ) .

What is the best what to do that ? is this a correct way ?

Aug
21
3 months ago
Activity icon

Started a new Conversation Vue Transition Is Not Working In Rotative Slider Banner

Hello , if I use this transition in my router-view , it will works -

  <transition name="fade" >
           <router-view :key="$route.fullPath" ></router-view>
        </transition>

BUT , I am developing a rotative slider banner something like that -

	 <transition name="fade" v-if="currency == 1" >
                <div class="home-header"     v-bind:style="{ backgroundImage: 'url(' + '/assets/image/banne2.jpg' + ')' }" >
                    <div class="container has-text-centered">
                        <transition name="fade" >
                            <h1 class="title title-home-one">my TExt one </h1>
                        </transition>
                    </div>
                </div>
            </transition>

            <transition name="fade"  v-if="currency == 2" >
                <div class="home-header"    :style="{ backgroundImage: 'url(' +'/assets/image/banne2.jpg' + ')' }" >
                    <div class="container has-text-centered">
                        <transition name="fade" >
                            <h1 class="title title-home-one">my Text 2</h1>
                        </transition>
                        <!--   <a class="button btn-header is-light">Saiba Mais</a> -->
                    </div>
                </div>
            </transition>

<style scoped>
.fade-enter-active, .fade-leave-active { transition: opacity .5s }
.fade-enter, .fade-leave-to { opacity: 0 }
</style>

But the effect is not working , it is changing the banner image , but is not making the effect . If I use the same effect in the router-view , it will works . but it is not working at my banner .

Jun
18
5 months ago
Activity icon

Started a new Conversation Vue On Press Tab Behavior , Go To Next ( Select Custom Component )

Hello , I developed a Vue Select Custom component . and my form will be like this

<!-- input one -->
 <input  type="text"  v-model="form.input_one">

<!-- input two -->
 <input  type="text"  v-model="form.input_two">
                                           

<!-- input three ( MY Vue Selection Component)-->
<select-box v-model="form.type_id" ></select-box >

The problem is if I press Tab , It will select first the -

  • Input One
  • After Input Two
  • After go to One again , it will not go to my custom select component .

I wold Like to know how can I change this Tab Behavior , when goes to - three , select my custom component and open it .

like this one - https://vue-select.org/

Thanks