lukaisailovic

lukaisailovic

Member Since 2 Years Ago

Experience Points 6,140
Experience Level 2

3,860 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 50
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.

24 Mar
3 months ago

lukaisailovic left a reply on Laravel Access Denied For User 'root'@'localhost' Sometimes ?

@JLRDW - I don't think I do. dpkg --get-selections | grep mysql results in:

mysql-client-5.7                                install
mysql-client-core-5.7                           install
mysql-common                                    install
mysql-server                                    install
mysql-server-5.7                                install
mysql-server-core-5.7                           install
php-mysql                                       install
php7.2-mysql                                    install

I'm not sure if mysql-server andmysql-server-5.7 count as two different instances ?

lukaisailovic started a new conversation Laravel Access Denied For User 'root'@'localhost' Sometimes ?

I have a weird issue. I get Access denied for user 'root'@'localhost' whenever any query executes (I try to display it or whatever). The weird thing that got me confused is that it works normally for php artisan migrate and php artisan db:seed (I've manually checked the database, its all there and rows are present inside tables too). I've tried config:clear, cache:clear etc but nothing helps. Any idea what should I do ?

21 Nov
1 year ago

lukaisailovic left a reply on Settings

@topvillas When I made an example I mean global settings, not specific for one user. Are withdraws enabled, is registration enabled etc... If I store it in the config I would't be able to edit it from the controller

lukaisailovic left a reply on Settings

@topvillas I'm using database atm, but I don't care about history of settings, only about latest one. It does not make sense to have a table where you only care about one row

lukaisailovic started a new conversation Settings

What are you using to store settings ? Not settings like Redis connection for example, but stuff like are users able to withdraw from their accounts for example ? Stuff that should be edited from the admin panel, not from the files (.env, config).

12 Nov
1 year ago

lukaisailovic started a new conversation Somehow I Messed Up Captcha...

Okay so let me explained. I had a working project with captcha there (https://github.com/mewebstudio/captcha) I did some modification and messed up and put it as one commit so I can't precisely see when stuff did get messed up but captcha is no longer displaying image. I though maybe it was the package issue so I tried 2 more packages and same things happens. I checked the GD library and it was working fine. Then I thought it was my server issue so I uploaded the code to the VPS same thing happened. After that I just created new project and tried to use the same captcha library and it work normally. I now have no idea how are all captchas messed up since code I added does nothing with them.

11 Nov
1 year ago

lukaisailovic started a new conversation Can't Get Captcha Working...

Okay so I'm using https://github.com/mewebstudio/captcha on my project. I can't get it working on localhost, on server i HAD it working before but now it's not working. Also tried using two different packages for generating captcha and all result the same. I don't see the picture in my view and when i inspect the page and manually go to the image link I just see black image. I double checked if PHP GD is enabled and installed and it is.

24 Aug
1 year ago

lukaisailovic started a new conversation Factory, First Iteration

I've created factory for User model and it works fine generating random users. I was wondering is there a way to do something at creation but for one specific user. What I mean is that I'm creating username with $faker->userName and I'm creating 5 users. What i'd like to do is create that 5 (or any number) of users where one would have username johndoe for example and others would have random names. How would you guys do it ?

18 Aug
1 year ago

lukaisailovic left a reply on Where To Store Settings Data

@martinbean Didn't mean to come off that way. What I wanted to say is that it's important if you want to store 1 or more ratios because I would probably do it like this. Make ratios table and for each one I want create column (compared to USD) and then update columns with API on regular basis. I don't want to do that but why you think it's horrible approach ? What would you do instead ?

lukaisailovic left a reply on Where To Store Settings Data

@martinbean Does it matter really ? If I would add other currencies I would just store them in the same row, and my call to API would update all of them every 15 minutes creating new row at database regardless if I have 1 or 15 currencies supported.

@Monaam Thanks for your reply ! I'm still considering what would be best for this, but you are right about cache> i've though about creating a class that would handle getting data from cache and in case it's not there call an api and get it or just return default.

lukaisailovic left a reply on Where To Store Settings Data

@martinbean yeah but isn't it pointless to have a table where you only care about one row ?

lukaisailovic left a reply on Where To Store Settings Data

@ZetecVan Yeah, looks like that would work.

lukaisailovic started a new conversation Where To Store Settings Data

I don't know how to call this, so I'll call it settings data. Where do you guys store data like USD/EUR ratio for example ? I'm thinking database is not the right place, as I get data by checking API every 15 minutes, and I only care about most recent one so what is the point of saving every row if I'm going to use only last one. I tried just updating .env and storing it there but it must be better solution to this.

lukaisailovic left a reply on Cannot Use More Than One Request ?

@Paschal I did, everything is right. What is funny is that only LoginRequest won't work for some reason. If I name it anything other that that it will work. For example UserLoginRequest Work. Tried this on fresh install, same thing lol. No idea what is causing this to happen

16 Aug
1 year ago

lukaisailovic started a new conversation Cannot Use More Than One Request ?

Looks like my issue on GitHub was not right place to ask this and they told me to ask it here. So I will just copy-paste my issue.

  • Laravel Version: 5.5
  • PHP Version: 7

Description:

I'm using Laravel's request class to validate my request. I've done that for my register post method and trying to do it for Login Post but it wont work. I'm now using 5.5 but this happened to me in 5.4 also. I would just ignore it and try to write my validation logic in controller but it's ugly.

Steps To Reproduce:

I've created RegisterRequest with php artisan make:request command and used it in my controller like this:

public function RegisterPost(\App\Http\Requests\RegisterRequest $request)
    {
      $request->persist();
      return $this->RegisterShowMnemonic();
    }

Now I'm trying to do the same for my LoginPost. Used same command just replaced RegisterRequest with LoginRequest , and used it in my method but I get Class App\Http\Requests\LoginRequest does not exist like i haven't included it.

My method:

public function LoginPost(\App\Http\Requests\LoginRequest $request)
    {

    }

I've also try to include it on the top with Use and and then try it like that but same thing happens. I've manually check if file is there, if class match and it looks right to me. Weird thing is that everything just works with RegisterRequest

01 Jul
2 years ago

lukaisailovic started a new conversation Vagrant Command Not Found

I just installed vagrant and I get command not found (win10). I tried adding it to environment variables but nothing happens

26 May
2 years ago

lukaisailovic started a new conversation Frontend Auth

I'm using JWT for auth, and it's working fine for accessing protected routes, but what I don't understand is how to notify my frontend that user is authenticated now and forbid access to some vue-router routes (login and register for example) and change menu items...

08 May
2 years ago

lukaisailovic started a new conversation Can't Register New Components

For some reason I can't register new components. I got a few of them and when I try to register new one I get:


(found in <Root>)```
This is my app.js file:

Vue.component('example', require('./components/Example.vue')); Vue.component('register', require('./components/Register.vue')); Vue.component('loginmodal', require('./components/LoginModal.vue')); Vue.component('products', require('./components/Products.vue')); Vue.component('store', require('./components/Store.vue'));```

And Store.vue is basically duplicated Example.vue so no point in posting that. I tried using already created components on page like register for example and it works just fine for some reason

23 Apr
2 years ago

lukaisailovic started a new conversation Dropdown Not Working After Including App.js

I got my JS files at the botoom of the page like this:

<script type="text/javascript" src="{!! asset('js/app.js') !!}"></script>
    <script type="text/javascript" src="{!! asset('assets/js/core/libraries/jquery.min.js') !!}"></script>
    <script type="text/javascript" src="{!! asset('assets/js/core/libraries/bootstrap.min.js') !!}"></script>
    <script type="text/javascript" src="{!! asset('assets/js/plugins/loaders/pace.min.js') !!}"></script>
    <script type="text/javascript" src="{!! asset('assets/js/plugins/loaders/blockui.min.js') !!}"></script>
    <script type="text/javascript" src="{!! asset('assets/js/plugins/ui/nicescroll.min.js') !!}"></script>
    <script type="text/javascript" src="{!! asset('assets/js/plugins/ui/drilldown.js') !!}"></script>
    
    <script type="text/javascript" src="{!! asset('assets/js/core/app.js') !!}"></script>

As soon as I included my app.js file on the top (If I try to include it on the bottom I get drilldown.js error for some reason) my dropdowns are not working but I'm not getting any error regarding that. Don't really know what is going on here.

30 Nov
2 years ago

lukaisailovic started a new conversation Sending Email From Queued Jobs

I'm trying to send email from job that is queued, however it does not work for some reason. If I set my queue driver to sync it works fine, but i tested database and redis and it does not work (code and queue setup is fine since job creates user and send welcome email, user is successfully created in all cases but email is not sent). I don't really know what's the problem here. Am I able to send email from queued job ?

29 Nov
2 years ago

lukaisailovic left a reply on Laravel On VPS

@theUnforgiven @ejdelmonico Guys i have a problem with my current VPS, you just recommend to pay 15$ a month for something. I'm just trying to fix my current problem, don't want another service

lukaisailovic left a reply on Laravel On VPS

@theUnforgiven I don't want to move to other provider i want to fix my problem here

lukaisailovic started a new conversation Laravel On VPS

Hey , i was following this guide https://github.com/emilas44/laravel-5.2-on-Ubuntu/blob/master/Install%20Laravel%205.2%20on%20Ubuntu%2016.04.txt

and did everything exactly like there and when i did it before on my vps it worked but now it's showing only files that are inside of var/www/html . Even when i visit my directory there it's still showing only files. What should i do ?

28 Nov
2 years ago

lukaisailovic left a reply on Job Intensity

What i'm concerned about is paying to user. I'm giving payments via Bitcoin (Blocktrail API) When i used this API before it need a few seconds to make payment. It's not too much when one user click withdraw button but should i put them all in a single job ?

lukaisailovic started a new conversation Job Intensity

I'm building an app and i want to schedule a job to be run every 10 minutes. This is basic structure.

  1. Search User database (balance field) where balance is greater than X
  2. Run foreach loop
  3. For every record, make payment to user, update and create new records

This is what i need to create. I know how to make this but before i begin i want to check scalability of my idea. Will this work with 100 or 1000 users ? I'm currently using redis as queue driver.

27 Nov
2 years ago

lukaisailovic started a new conversation Trying To Get Property Of Non-object In Job

I'm trying to create job to register users and tried to follow Jeffrey's video but looks like dispatchfrom is removed for some reason. This is what i'm trying to do now:

This is my controller:

      public function PostSignUp(Request $request)
    {

      dispatch(new RegisterUser($request->all()));
      return 'done';

    }

This is my job:

namespace App\Jobs;

use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;

class RegisterUser implements ShouldQueue
{
    use InteractsWithQueue, Queueable, SerializesModels;

    protected $request;

    /**
     * Create a new job instance.
     *  @param $request
     * @return void
     */
    public function __construct($request)
    {
        $this->request = $request;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
      $email =   $this->request->email;
      var_dump('I should register user with email:' . $email);
    }
}


I'm getting Trying to get property of non-object error. Is this good way to pass whole request to job ? Should i do it some other way ?

lukaisailovic started a new conversation Messed Up Stylesheets

I've included my stylesheets in my master layout and it's working for home (it's just / route) but when I try to add them to another view with route for example /signup it thinks that my styles are in /signup/assets instead of just /assets folder. I've tested this on multiple pages and it's same. This is how i included them on my master file where it works:

And this is how it reads on signup page (and can't find it obviously):

http://localhost:8000/signup/assets/css/style.css

Where did i make mistake

19 Nov
2 years ago

lukaisailovic left a reply on Uploading On VPS

@bobbybouwmann Not working as it's registering domail/phpmyadmin as route now and its trowing NotFoundHttpException in RouteCollection.php line 161:

lukaisailovic left a reply on Uploading On VPS

I followed this tutorial , managed to get it working ! https://github.com/rsamons/laravel-5.2-on-Ubuntu/blob/master/Install%20Laravel%205.2%20on%20Ubuntu%2016.04.txt

Anyway now phpmyadmin is not working , because i messed with directories. How can i fix that ?

lukaisailovic left a reply on Uploading On VPS

@bobbybouwmann Well i do have SSH access :) I got vps and manually installed LAMP stack

lukaisailovic left a reply on Uploading On VPS

@bobbybouwmann Restarted apache, cleared logs and it's not logging again !

lukaisailovic left a reply on Uploading On VPS

@bobbybouwmann Just read log, everything from there are stuff from local server, nothing since upload. And yeah i did create database and uploaded .env

lukaisailovic started a new conversation Uploading On VPS

I got freshly installed VPS with LAMP stack. Uploaded my project to folder in same level as html folder and uploaded files from public in var/www/html , also updated .htaccess and dir names in index as they said here http://laravel.io/forum/03-06-2015-how-to-setup-laravel-5-in-shared-hosting but i still get 404 not found error.

17 Nov
2 years ago

lukaisailovic left a reply on Form Not Submitting Data

what @rdelorier wrote did it ! thanks

lukaisailovic started a new conversation Form Not Submitting Data

I built a simple form and it's not submitting data for some reason, this is view code:

div class="panel panel-default col-md-6 col-md-offset-3" style="margin-top:150px">
<div class="panel-body">
  <form class="form-horizontal" role="form" method="POST" action="{{ url('/login') }}">
<input name="_token" type="hidden" value="{!! csrf_token() !!}" />

    <div class="form-group">
   <label for="inputbtc" class="col-md-2 col-md-offset-2 control-label">BTC Address</label>
   <div class="col-md-5">
     <input type="string" class="form-control" id="inputbtc" placeholder="BTC Address">
   </div>
 </div>

 <div class="form-group">
<label for="inputpassword" class="col-md-2 col-md-offset-2 control-label">Password</label>
<div class="col-md-5">
  <input type="password" class="form-control" id="inputpassword" placeholder="Password">
</div>
</div>

<div class="form-group">
    <div class="col-md-4 col-md-offset-5">
      <input type="submit" name="submitbutton" class="btn btn-default" value="Sign in / Register">

    </div>

  </form>
</div>
</div>

route:

Route::post('login', 'Auth\[email protected]')->name('dologin');

and in controller i just dd($request) and i just get values for token and submitbutton but not for other two inputs for some reason

13 Nov
2 years ago

lukaisailovic started a new conversation Events

I'm trying to make service where user balance increase ofer time and distribute payments when certain amount is reached. Let's say I got user model with balance, and i want balance to increase by 1 every 5 minutes, when balance reach 10 i want to distribute payment to that user and send email notification. What would be the best way to make this sort of system