vladv

vladv

Member Since 4 Years Ago

Baia Mare

Experience Points 25,600
Experience Level 6

4,400 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 279
Lessons
Completed
Best Reply Awards 0
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.

14 Dec
7 months ago

vladv left a reply on Passing Data To Vue/Buefy Modal

An approach would be to pass (on clicking delete) the index of the article (item) instead of settings a boolean value. With this index you can get the item data from the main array.

var app = new Vue({
    el: '#app',
    data: {
        articles:[],
      articleIndex:false,
      article:false,
    },
    methods: {
      fetch: function() {
        this.articles =[
          {name:'Hello word', id:1},
          {name:'Hello moon', id:2},
          {name:'Hello car', id:3},
          {name:'Hello batman', id:5},
          {name:'Hello superman', id:22},
      
        ]   
      },
        onDelete:function(index) {
        this.articleIndex =index;
        this.article =this.articles[index];
      },
      handleDelete:function() {
                // do here a post request ... 
        // i.e axios.post('/article/delete/'+this.article.id)
        this.close();
        this.fetch();
      },
      close:function() {
        this.articleIndex =false;
        this.article =false;
            }
    },
    
    mounted: function() {
        this.fetch();
    }
});

I did a quick example take a look: js fiddle

02 Dec
7 months ago

vladv left a reply on Base64 Inline Images In CSS With Mix

And I think if you use base64 images this can't be cached ...

28 Nov
7 months ago

vladv left a reply on Where Are You All From?

Baia Mare, Romania Noroc!

vladv left a reply on Axios .then() Syntax

take a look at the refresh method

            refresh( {data} ) {
                this.dataSet = data;
                this.items = data.data;
            }
26 Nov
7 months ago

vladv left a reply on Laravel.log Write .env Data To It

what did u do? and what to expect to happen? (provide more details please)

09 Nov
8 months ago

vladv left a reply on How To Use Progress Bar Based On The Filled Form In Laravel Project?

You can do something like this (with javascript): total number of fields .... 100% total number of filled fields ... x%

where a filed fields means it's not empty

check out a quick sample:Js fiddle

24 Oct
8 months ago

vladv left a reply on Trying To Get Property 'user' Of Non-object

What is you structure? and relationships ? I think you are missing something ...

Project - hasMany - Members Member - belongsTo - User

Or more logic would be

Project - hasMany - Users

vladv left a reply on Checking Value

try

dd($schedule->toArray());

vladv left a reply on Syntax Error, Unexpected ')'

everything looks fine with the test, what about the Controller?

vladv left a reply on Syntax Error, Unexpected ')'

$this->be($user = factory('App\User')->create());
23 Mar
1 year ago

vladv started a new conversation SQLSTATE[42S22]: ... In 'group Statement'

Why it force me to specifies all fields in groupBy()?

$roles = 
    Role::select('roles.department_id', 'roles.id', 'roles.name', 'roles.role_type')
    ->join('role_site', 'role_site.role_id', '=', 'roles.id')
    ->join('sites', 'sites.id', '=', 'role_site.site_id')
    ->groupBy('roles.id')
    ->orderBy('roles.name');

I receive:

Illuminate \ Database \ QueryException (42S22)
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'roles.department_id' in 'group statement' 
06 Feb
1 year ago

vladv left a reply on Search Multiple Models, Like 'threads' And 'replies' And Get Results Ranked?

I would make 2 queries, first one will search in threads table, and second in reply and return results with pagination. I do not know you tables structure, but for the queries you can use like "%query_string%" conditions (see more about FULLTEXT index definition on google).

Of course if you think the forum will have > 50k+ threads, replies, u better search for another solution like: Laravel Scout's ( details: https://laravel.com/docs/master/scout), ElasticSearch (advanced), sphinx search ...

vladv left a reply on OrderBy Relatable Table

i think you need to get all sales joined with products (to get the name), grouped by product.id and you need to have a group count as total_sale, then you order by this one desc.

Something like:

Sales::select(\DB::raw('COUNT(sales.id) as total_sales, products.name'))
    ->with('product')
    ->orderBy(\DB::raw('COUNT(sales.id)', 'desc')
    ->get();

(not tested)

vladv left a reply on Image Source Not Readable

can we see your code ?

01 Oct
1 year ago

vladv left a reply on Array Minimum Count Or Output Dummy Data ?

You could do something la this;

From your controller: '''

$projects = $follower->projects->where('status','published')->take(4) ;

for ($i=$projects->count(); $i<4;$i++) {

$dummy = new \stdclass;
$dummy->name = 'Dummy project ' .$i; 

$projects[] = $dummy;

}

'''

And in your view ''' @foreach($projects as $project) project item here @endforeach '''

Hope this help, if not please provide more details :)

13 Sep
1 year ago

vladv left a reply on Ajax Request Laravel 5.5

@mahammad just tested, you need to set:


contentType: "application/x-www-form-urlencoded; charset=UTF-8",

or delete contentType param because that is the default value

for more information check http://api.jquery.com/jQuery.ajax/ contentType

12 Sep
1 year ago

vladv left a reply on Laravel Calendar

I use fullcalendar.io for frontend, but for backend I don't think there is a package because there are a lot of approaches for each application. Try fullcalendar it's very easy to integrate.

vladv left a reply on How To Paginate The Record Using Multiple Tabs

Hi, I don't understand exactly what you want to achieve, perhaps it would be better to provider some code or images.

I would load tab content with ajax, only if it is active, so you will have one pagination for each tab.

vladv left a reply on Ajax Request Laravel 5.5

well, your empty response comes from your Controller for the route "/avatars" (POST), what do u want to achieve?

20 May
3 years ago

vladv left a reply on Need Help On FileSystem/Storage

You need to add in bootstrap/app.php

$app->singleton('filesystem', function ($app) {
    return $app->loadComponent('filesystems', 'Illuminate\Filesystem\FilesystemServiceProvider', 'filesystem');
});

And in your controller:

use Illuminate\Support\Facades\Storage;
09 May
3 years ago

vladv left a reply on Cannot Watch Any Videos?

Same. :(

25 Apr
3 years ago

vladv left a reply on Update User Last_seen_at If User Is Authenticated

I also put it in a middleware, in Authenticate.php witch is already used for all auth routes.

last_seen_at on every page load seems more like and logger why not use a text log ?