leostereo

Member Since 1 Year Ago

Experience Points
5,590
Total
Experience

4,410 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
43
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.

  • Community Pillar

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

Level 2
5,590 XP
Jan
27
2 months ago
Activity icon

Started a new Conversation How To Add Third Party Library To Laravel 8 Project.

Hi guys. I need to include phpseclib in my new laravel project. I have no idea what to do and cant find related documentation. Can you provide some clue ?

btw: I already installed library via composer on a testing folder and it works. this is my testing script and my composer.json files:

<?php
require 'vendor/autoload.php';

use phpseclib3\Net\SSH2;

$ssh = new SSH2('172.16.16.2');
if (!$ssh->login('admin', 'megapack')) {
    throw new \Exception('Login failed');
}

{
    "require": {
        "phpseclib/phpseclib": "~3.0"
    }
}

How to take this to work on my laravel controller ? Thanks Leandro.

Jan
26
2 months ago
Activity icon

Replied to Add Vuejs + Vuetify To My Laravel 8 Running With Sail Script (for A Fullstack Developer)

Mariano , I tryed , but did not work. I start to believe that my project is not propperly created , since Iooked into multiple tutorials .... and created a frankenstein mix.

, I also modified this file: webpack.mix.js. (did not mentioned before, and could be important).

mix.js('resources/js/app.js', 'public/js').vue()
    .postCss('resources/css/app.css', 'public/css', [
        //
    ]);

It think it would be better to start again with a fresh project. It would be great if would be possilbe to use vue ui tool to set the front end , and then somehow add it to laravel. Leandro.

Jan
25
2 months ago
Activity icon

Replied to Set CORS To Allow Cross Site Request.

It is worked!! Thanks.

Activity icon

Started a new Conversation Set CORS To Allow Cross Site Request.

Hi guys. Im having problems with CORS on laravel. I created two dockers services. One for the front end (axios on vuejs). The other for laravel backend runing with sail script. Is there same quick way to allow CORS for all methods for all routes. Working with raw php I used to do:

header('Access-Control-Allow-Origin: *'); header('Content-Type: application/json');

but this does not work here.

I readed about cors file , so I did:

´´´ return [

/*
|--------------------------------------------------------------------------
| Cross-Origin Resource Sharing (CORS) Configuration
|--------------------------------------------------------------------------
|
*/

'paths' => ['api/*', 'sanctum/csrf-cookie', '/*'],

'allowed_methods' => ['*'],

'allowed_origins' => ['*'],

'allowed_origins_patterns' => [],

'allowed_headers' => ['*'],

'exposed_headers' => [],

'max_age' => 0,

'supports_credentials' => false,

]; ´´´

but can not fire axios get request with single param. Any help would be wellcome. Thanks!!!

Jan
24
2 months ago
Activity icon

Replied to Add Vuejs + Vuetify To My Laravel 8 Running With Sail Script (for A Fullstack Developer)

Mariano , gracias por tus palabras. I think this documentation is prepared for vuejs scaffolding. I already tryed but can not find the "src/plugins/vuetify.js" file under laravel files tree. Thanks.

Activity icon

Started a new Conversation Add Vuejs + Vuetify To My Laravel 8 Running With Sail Script (for A Fullstack Developer)

Hi guys, I have some experience coding with laravel and vuejs but ... have not idea how does library loaders works. Currently im trying to add vuejs + vuetify to my laravel 8 project running with sail script. After reading a lot of tutorials , I got this working doing:

npm install --save vue
npm install vuetify

Then in my resources/js/app.js looks like this:

import Vue from 'vue'
import VueRouter from 'vue-router';
import router from './Router/index'
import store from './Store/index';
import App from './App.vue'

import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css';

Vue.use(Vuetify);
Vue.use(VueRouter)

const app = new Vue({
  el: '#app',
  vuetify: new Vuetify(),
  router,
  store,
  components: { App }
});

then , my entry point in laravel view is:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet">

    <title>{{env('APP_NAME')}}</title>
</head>
<body>
    <div id="app">
	<v-app>
		<app></app>
	</v-app>
    </div>

    <script src="{{ mix('js/app.js') }}"></script>
</body>
</html>

I got this working , however , in order to have a full vuetify working I must include the:

    <link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet">

line at the laravel entry point view , otherwise It does not work. So , I would like to know: Is there some working example/documentation about installing vue + vuetify to my laravel 8 project running with sail ? (I have been looking without success) How can I modify my project to avoid downloading vuetify from cdn ? I need to install them locally since some users will load it over a vpn without internet access.

Thanks, Leo.