atorscho

Member Since 4 Years Ago

Paris

Experience Points 55,885
Experience Level 12

4,115 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 761
Lessons
Completed
Best Reply Awards 1
Best Reply
Awards
  • start-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-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-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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.

29 Apr
1 year ago

atorscho left a reply on Problems With Memory Using Composer

Warning from DigitalOcean

Although swap is generally recommended for systems utilizing traditional spinning hard drives, using swap with SSDs can cause issues with hardware degradation over time. Due to this consideration, we do not recommend enabling swap on DigitalOcean or any other provider that utilizes SSD storage. Doing so can impact the reliability of the underlying hardware for you and your neighbors. This guide is provided as reference for users who may have spinning disk systems elsewhere.
13 Mar
2 years ago

atorscho left a reply on Vue Components And AJAX Loaded HTML Content

@lmartins, unfortunately, no. But I tried to use Turbolinks in order to achieve this behaviour and it does (re)execute my Vue components. You can give it a try!

20 Feb
2 years ago

atorscho left a reply on How To Upload File With Vue.js

@tquiroga, are you using Vue 1.x or Vue 2.x?

26 Dec
2 years ago

atorscho left a reply on Vue Components And AJAX Loaded HTML Content

@ejdelmonico, thank you for your answer. I will try to see if I can achieve what I want with your solution.

atorscho left a reply on Vue Components And AJAX Loaded HTML Content

The problem is that the loaded HTML (with AJAX) is not reprocessed (recompiled) by Vue. This is what I need to do, but I have no idea how to.

25 Dec
2 years ago

atorscho left a reply on Vue Components And AJAX Loaded HTML Content

@ejdelmonico, there are no error messages.

When I first open (refresh) the page, I get a Vue component that is nicely formatted and styled. But when I load a new page via AJAX, I only get <slot> contents of that Vue component.

Am I clear or should I better show some images?

atorscho left a reply on Forgot Password Routes

Just use the Route facade.

(Updated the post)

atorscho left a reply on Forgot Password Routes

// Password Reset Routes...
$this->get('password/reset', 'Auth\[email protected]');
$this->post('password/email', 'Auth\[email protected]');
$this->get('password/reset/{token}', 'Auth\ResetPasswordCont[email protected]');
$this->post('password/reset', 'Auth\[email protected]');

atorscho started a new conversation Vue Components And AJAX Loaded HTML Content

Hello,

I use Vue components across my site that just replace some bunch of code (just some shorthands for complex HTML markup). I also use AJAX to just replace #content of my HTML page so that it doesn't need to refresh every page every time.

Everything works fine, except when I try to load a page that contains a Vue component. The problem is that this component, after being loaded with AJAX, doesn't want to get compiled into HTML.

I have already tried to use Vue.compile() but it does not work, I have also tried to rerun my new Vue instance — the same sad result.

Could someone please help me with this problem?

Thank you in advance.

29 Mar
3 years ago

atorscho left a reply on Update Enum Field In Database

@jekinney, as I have noticed, SQLite doesn't support enum type.

26 Mar
3 years ago

atorscho left a reply on Update Enum Field In Database

@NowAndHere, have you included the field in $fillable attribute in your model?

P.S.: You could also use tiny int ($table->boolean, I believe) in your case.

20 Mar
3 years ago

atorscho left a reply on From Dropzone To Vue

Oh, thank you @jekinney, that's very kind from you.

Yes, it's then now. I will look at this and then post the updated version.

19 Mar
3 years ago

atorscho left a reply on ReflectionException: Class Log Does Not Exist In /home/vagrant/Code/

Can't believe I did it! I got this same error just because I used url() function in config/services.php file.

Just in case that could help someone.

17 Mar
3 years ago

atorscho left a reply on I Cant Defeat Composer (Trying To Upgrade To 5.2)

@vtalbot, I get Could not parse version constraint 5.2.* as 5.1: Invalid version string "5.2.*" in "5.2.* as 5.1", the alias source must be an exact version, when using this method.

atorscho left a reply on From Dropzone To Vue

@jekinney, thank you for the link, but I still cannot figure out how to do it.

13 Mar
3 years ago

atorscho left a reply on Caching Lazy Eager Loading Queries In Laravel 5.1

@aakash, just a little typo, but firstorFail() to firstOrFail(), just in case. :)

08 Mar
3 years ago

atorscho left a reply on From Dropzone To Vue

@jekinney, thank you for the link, but I don't use Bootstrap and want to do something by myself, to learn. Just if you can give me some advice in order to achieve this...

07 Mar
3 years ago

atorscho started a new conversation From Dropzone To Vue

Hello,

I am creating an edit form where users can add images to their articles. On that edit page I have a dropzone section.

What I want to do is to be able to send images from that Dropzone not to the controller but to a Vue method. I am beginner to JavaScript and have no idea how to do this.

Thanks in advance!

25 Feb
3 years ago

atorscho left a reply on Multiple Upload With Laravel

@jekinney, that too. I'll try this one. Thanks. :)

atorscho left a reply on Multiple Upload With Laravel

@Duffleman, everything's ok with that, I have already required this package in my composer file.

The problem is when I call $request->file('images') I get null. And my markup is exactly the same as above. Input name contains "[]" and "multiple" attribute too. It's only the problem with that null.

atorscho left a reply on Multiple Upload With Laravel

@DV, I am using Laravel 5.1 and trying to make it work, but cannot. Maybe in latest versions this feature has been removed?

05 Dec
3 years ago

atorscho left a reply on Error When Saving Eloquent

@pmall, if I am not mistaken, it should be protected $table.

22 Nov
3 years ago

atorscho left a reply on Laravel On Shared Hosting

I was using a shared hosting with Laravel several months ago.

It was such a headache to apply all modifications made to the application: I had to upload (update) each modified file with an FTP client.

Now I am using Digital Ocean and am very comfortable with it. I purchased the cheapest plan (it is enough for me, right now) and won't ever come back to a shared hosting again.

I really recommend you to switch to a Cloud VPS.

atorscho left a reply on Naming Conventions Of The Video Files

Same here. I like to save all files to be able to watch them quickly when I need to refresh my memories. But unfortunately I need to rename each file to have a nice and readable list of videos.

25 Oct
3 years ago

atorscho started a new conversation Replacing Blade Directive

Hello,

Is there a way to replace Blade's default directive?

For example, I want to change @can behavior. I know that I can modify BladeCompiler::compileCan() but I need to find a way to change it without modifying the source code (of course).

Thanks in advance.

06 Sep
3 years ago

atorscho left a reply on Some Form Fields Are Ignored

Resolved! I can believe how stupid this was. It's just my helper function for forms textarea() returned always <textarea name="description" no mather the name.

Thanks anyway for trying to help me!

atorscho left a reply on Some Form Fields Are Ignored

laravelcollective for forms.

Yes, it's exactly how it should. Each my forms are of this format, but only this one is bugging.

It is in the created.blade.php view.

atorscho left a reply on Some Form Fields Are Ignored

@taijuten , it's not the mass assignment issue. Since it's the Request that ignores these fields, not the model, I just don't get to that line.

Yes, of course, but it's quite long:

<div class="ui segment zero top margin">
    <h3 class="ui dividing header">
        Main Information
    </h3>

    <div class="two fields">
        <div class="field">
            <label for="type_id">
                Type
                <span class="input helper"><i class="help circle icon"></i></span>
                <span class="ui popup">
                    If the needed type is not listed in the select box, you may <a href="{{ route('admin.projects.types.create') }}">add a new one</a>.
                </span>
            </label>
            {!! select('type_id', $types) !!}
        </div>
        <div class="field">
            <label for="client_id">
                Client
                <span class="input helper"><i class="help circle icon"></i></span>
                <span class="ui popup">
                    If the needed client is not listed in the select box, you may <a href="{{ route('admin.clients.create') }}">add a new one</a>.
                </span>
            </label>
            {!! select('client_id', $clients) !!}
        </div>
    </div>

    <div class="two fields">
        <div class="field">
            {!! label('title') !!}
            <div class="ui corner labeled input">
                {!! text('title', null, null, ['data-slug' => 'slug']) !!}
                <div class="ui corner label">
                    <i class="asterisk icon"></i>
                </div>
            </div>
        </div>

        <div class="field">
            {!! label('slug') !!}
            {!! text('slug') !!}
        </div>
    </div>

    <div class="field">
        {!! label('description') !!}
        {!! textarea('description', null, null, ['class' => 'editor']) !!}
    </div>

    <div class="field">
        {!! label('body') !!}
        {!! textarea('body') !!}
    </div>

    <div class="field">
        {!! label('published_at', 'Date') !!}
        {!! form_date('published_at', isset($project->published_at) ? $project->published_at : null) !!}
    </div>
</div>

<div class="ui segment zero top margin">
    <h3 class="ui dividing header">
        Details
    </h3>

    <div class="field">
        {!! label('url', 'URL') !!}
        {!! form_url('url', null, 'URL') !!}
    </div>

    <div class="two fields">
        <div class="field">
            {!! label('languages') !!}
            {!! select('languages[]', $languages, true) !!}
        </div>
        <div class="field">
            {!! label('technologies') !!}
            {!! select('technologies[]', $technologies, true) !!}
        </div>
    </div>

    @if(isset($project))
        <a class="ui fluid button" href="{{ route('admin.projects.images', $project->id) }}">
            Images
        </a>
    @endif

    <div class="field">
        <input type="text" placeholder="new field" />
    </div>
</div>

<div class="ui segment zero top margin">
    <h3 class="ui dividing header">
        SEO Meta Tags
    </h3>

    <div class="field">
        {!! label('meta_title') !!}
        {!! text('meta_title') !!}
    </div>

    <div class="field">
        {!! label('meta_description') !!}
        {!! textarea('meta_description') !!}
    </div>
</div>

@include('partials._form_controls')

atorscho started a new conversation Some Form Fields Are Ignored

Hello,

For a couple hours I am trying to resolve a very big and strange problem.

I have a form for Projects resource. Create and Edit views include _form.blade.php view which contains every fields. Normally, no problem here.

I have several fields in my form: client_id, type_id, title, slug, description, etc. The error is that the fields description, meta_description and the new ones that I add just to test are completely ignored. There fields are not even included in the $request->all() array, except for the description, which is present but always empty.

I really have no idea what I did to have such a problem. I have two other resources where I use same technique, and there is absolutely no problem!

Has someone already encountered this kind of issue? I am really lost in this.

Thanks in advance.

30 Jun
4 years ago

atorscho started a new conversation Wildcard Subdomain Issue

Hello,

I just implemented subdomain (localhost, for now) to my Laravel 5.1 project, but I get an issue with home routes.

This is my configuration for the Virtual Host on Ubuntu.

<VirtualHost *:80>
    ServerName example.dev
    ServerAlias *.example.dev example.dev

    ...
</VirtualHost>

This is the /etc/hosts file:

127.0.0.1     example.dev
127.0.0.1     *.example.dev

And in routes.php:

get('/', ['as' => 'home', function () {
    return view('frontpage');
}]);

Route::group(['domain' => 'sub.example.dev'], function () {
    get('/', ['as' => 'pages.index', 'uses' => 'PagesController@index']);
    get('{page}', ['as' => 'pages.show', 'uses' => 'PagesController@show']);
});

My issue is that home route is the same as pages.index in the sub.example.dev domain.

If I delete the first route (home), the error is fixed. pages.index uses PagesController@index. If the home route is present, pages.index is ignored.

As I can understand this is because of their URLs '/' that is the same.

Could someone tell me how to fix this problem, please?

Thanks in advance.

21 Jan
4 years ago

atorscho left a reply on Modal Relationships

@appnorth, by "display the results in asc order by the Contractor model 'company' field" you mean that you want to order the contractors by their company field, right?

For I recommend you to use Model::lists('name', 'id');. It will return an array with id as array key and name as array value. Then you can put it in your view:

{{ Form::select('someName', $list, null) }}

atorscho left a reply on Routing: Wildcard

@andylcc349, maybe this is what you're looking for:

Route::get('admin/{wildcard}', function($wildcard)
{
    //
})
->where('wildcard', '.+');

Regex Routes

24 Oct
4 years ago

atorscho left a reply on Laravel Elixir Less Problem

Fortunately, I thought it was who did something wrong. :)

atorscho left a reply on Laravel Elixir Less Problem

@JeffreyWay, thank you very much. It works like a charm. I wonder why it did not work before.

atorscho started a new conversation Laravel Elixir Less Problem

Hello again,

I just created a new laravel project and tried to use Elixir.

I first run npm install and then gulp. The strange thing is that phpUnit does work (it shows me errors or success notifications), but not less.

I write mix.sass('master.less') and normally it should output compiled .css file to public/css, right? But it does not. I also tried to remove all other tasks and only leave less, but nothing changed.

Have I forgotten something?

Thanks in advance.

atorscho left a reply on Artisan App:name No Longer Working

I get this exactly same message. And I would not recommend you to run php artisan inspire. It definitely does not inspire (I got a hu-uge error message and than none of the commands worked after that).

atorscho left a reply on Problems With Creating A Workbench In L5

@slovenianGooner, thank you very much. It works perfectly! :)

May I ask how did you know that it was removed? Is it written somewhere? I just do not like asking about errors too much, I try to resolve it by myself. That was an exception, I was desperate.

atorscho started a new conversation Problems With Creating A Workbench In L5

Hello,

When I was creating a workbench on L4 I had a "{Vendor}/{Package}/{Package}ServiceProvider not found" problem. It was fixed with "php artisan dump-autoload" and "composer dump-autoload" commands.

But now, on L5 I get that error even after running the commands above. And on localhost, I get that message: "ClassNotFoundException in ProviderRepository.php line 129: Attempted to load class "{Package}ServiceProvider" from namespace "{Vendor}{Package}". Did you forget a "use" statement for another namespace?"

Do you have an idea how to fix it?

Thanks in advance.