umefarooq

umefarooq

Member Since 4 Years Ago

at Dubai UAE

Experience Points 17,750
Experience Level 4

2,250 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 136
Lessons
Completed
Best Reply Awards 3
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

13 Nov
6 months ago

umefarooq left a reply on Looking For Best Way To Setup A VPS Server

Thanks for reply, really helpful. I was able to install LAMP on server, How can i set up personal emails, send and receive emails.

11 Nov
6 months ago

umefarooq started a new conversation Looking For Best Way To Setup A VPS Server

Looking for best way to setup a VPS server for laravel and other needs. I recently moved from shared hosting to vps, after moving came to know i have blank server, i have to setup everything, now what is the best way to setup vps server with all services like shared hosting, like important things Email, Web Server other services. how much ram and cpu required for personal portfolio site.

27 Mar
1 year ago

umefarooq left a reply on Can I Use Mix Outside Of A Laravel Project?

This youtube video really helped me and it work great

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

21 Jan
1 year ago
20 Jan
1 year ago

umefarooq started a new conversation Looking For A Social Media Api Package

Hi, I am looking for a package which can fetch social feed from all social media channels. package should be all in one (all social channels API in one package)

19 Dec
1 year ago

umefarooq left a reply on HTML Forms Vs Laravel-form-builder Vs Forms & HTML

I really like and using Laravel Collective forms.

  1. you can extend Form or Html build can add more custom fields in Form or html builder, you can create twitter bootstrap form elements with extend.
  2. Form::model method help you fill all input fields with database save value on edit.
  3. or Form validation keeps old value in form element.
05 Dec
1 year ago

umefarooq left a reply on How Can I Update Root Data From Compunent.

well you answer helped me but you need to modify little to show where is got-data event is that's the missing part of answer.

umefarooq left a reply on How Can I Update Root Data From Compunent.

can you give simple example i am just beginner, i am getting following error

29 Nov
1 year ago

umefarooq started a new conversation How Can I Update Root Data From Compunent.

Hi i want to update root data from component, i am getting data through ajax request i want to update that data to root data from component.

09 Apr
2 years ago

umefarooq left a reply on Laravel 5.4: Define A Reset Password Email Template?

you can publish all vendor blade files to your resources/views/vendor directory you can modify default reset password template.

php artisan vendor:publish

after publishing you can file email.blade.php under resources/views/vendor/notifications directory

umefarooq started a new conversation How To Save Only Selected Items Using HasMany On Update And Remove Already Save Items Not Selected.

Hi, i need help for updating one to many relationship, i am using multiple select dropdwon list and checkbox array to save information. first time save is working fine, on update if i uncheck or not selecting any old item, it should save only selected items, uncheck or not selected item should be deleted from database.

02 Feb
2 years ago

umefarooq left a reply on Laravel 5.3 Session Is Not Presistant

really bad luck no success, i'm leaving laravel development for some project because of server issue, now i have to develop whole project again in CI my old love :(

01 Feb
2 years ago

umefarooq left a reply on Laravel 5.3 Session Is Not Presistant

@Bounoable I'm returning everything from controller simple laravel auth not able to set session after successful login

umefarooq left a reply on Laravel 5.3 Session Is Not Presistant

@SaeedPrez thanks I will check blade thing I have already set app_URL in .env file laravel creating session files on each request, but locally on my mac development machine everything works fine I have saved same problem in laravel 5.2 project

umefarooq started a new conversation Laravel 5.3 Session Is Not Presistant

Laravel 5.3 every request generate new session I always face token mismatch problem and after successful login no session saved I'm using xampp as server on windows

26 Jan
2 years ago

umefarooq left a reply on Laravel 5.3 Not Saving Session On My Production Server

@bobbybouwmann its just fresh install, i am using session driver as database this problem drive me crazy, i think because of this session problem i am also getting CSRF token mismatch exception right now i have disabled VerifyCsrfToken middleware

umefarooq started a new conversation Laravel 5.3 Not Saving Session On My Production Server

Hi, im trying to login using laravel auth but its not saving session and always redirected to login page, not any login any kind of session is not working anybody can help me what im doing wrong for laravel session, on my local machine project works fine

http://community.ajman.ac.ae/login

usernaem/password [email protected]/123456

23 Jan
2 years ago

umefarooq started a new conversation Laravel 5.3 Authenticate Middleware Extend Or Modify For Personal Project.

Hi, in laravel 5.2 Authenticate middleware was available under

\App\Http\Middleware\Authenticate::class

it was easy to modify that middle ware, now in laravel 5.3 it is moved to following path

\Illuminate\Auth\Middleware\Authenticate::class

if i want to extend this middleware how i can do that or i have to create another auth middleware and change path in kernel.php.

need a good and easy solution with changing core auth middleware.

25 Dec
2 years ago

umefarooq started a new conversation Need An Example Of Vuejs 2 With Routes And Ajax

Hi, I am looking for an example of vuejs 2 with routes and ajax, i have tried ajax which is loading dynamic links from those links want to route and load more ajax data. any example can help

21 Dec
2 years ago

umefarooq left a reply on Multiple Companies In One Database Or One Company Per Database?

I also agree with most, now my question is if you have single database for multiple companies how you protect data while editing or getting from other companies, if we use just primary key to edit any company can access data of other company,

please share some good ideas to protect data.

20 Dec
2 years ago

umefarooq left a reply on Multi Tenant Separation Of Assets

@luceos can you share code how you did that.

umefarooq left a reply on Multi Tenant Separation Of Assets

@luceos can you share code how you did that.

19 Dec
2 years ago

umefarooq left a reply on How To Point Valet Multiple Domains To One Directory Or Project

well fond the solution my self valet link works fine go inside project directory valet link site1 will link your project directory to domain site1.dev

umefarooq started a new conversation How To Point Valet Multiple Domains To One Directory Or Project

i am using valet for development, right now it is creating single domain for single project or directory, how i can i point different domains to single directory or project. like site is main directory site.dev works fine how i can point site1.dev or site2.dev to site folder.

umefarooq left a reply on Image Url Is Relative To Route Wildcard

for all assets, like images, css and js files use asset helper method

echo asset('img/photo.jpg');

read helper method in laravel doc

https://laravel.com/docs/5.3/helpers#method-asset

06 Nov
2 years ago

umefarooq started a new conversation Which Queue Driver Is Faster Database Or Redis.

which queue driver is faster database or redis, if any body has some benchmarks please provide, i have used database queue driver it took 1 hour to complete 2815 jobs. sending push notifications for ios and android devices.

umefarooq started a new conversation Looking Fast Push Notification Solution Bulk Push.

Hi i am looking for push notification solution which can send notification to thousand of devices (ios, android) with in no time, i have developed one my own using laravel 5.2 and laravel push notification package, without laravel queue its sending but maximum execution time limit exit the processing and gives error, now using laravel queue but it executing each process one by one which take time to send push notificat thousand of devices. for 1380 devices it took 35 min. from my development machine.

any online solution, service or help with laravel queue to send them fast.

27 Oct
2 years ago

umefarooq left a reply on How To Secue My Site Repo In GitHub And Give Access To My Developers ?

Hi if you really want private git repos and your team is small than use dropbox or owncloud(really really private) and git to share your git repo with team,

you can create branches of your git repo ask developer to work on branch later you can marge them in your main repo.

read this article to create git repo with dropbox- work same for owncloud

http://jetheis.com/blog/2013/02/17/using-dropbox-as-a-private-github/

owncloud self hosted cloud. https://owncloud.org/

umefarooq left a reply on Saving With Multiple Relationships

i think you are passing collection object to associate method, it accept only array try to convert your collection object toArray() for your all associate keys

Size::firstOrFail($size_key)->toArray();
Color::firstOrFail($color_key)->toArray();
31 Jul
2 years ago

umefarooq started a new conversation Laravel Token Mismatch With Apache Mod Security

Hi, i am facing this problem since i have installed mod_security on my server, all my applications build on laravel start giving token mismatch problem on form submit, i have disabled middleware for the time being, keep apps in working, my server windows server, with apache and mod_security. i don't under stand where the problem is anybody can help or better solution.

10 Jul
2 years ago

umefarooq left a reply on Getting Valet - Not Found Error

@Baadier your welcome, this is for future reference, or anybody else facing same problem.

01 Jul
2 years ago

umefarooq left a reply on Getting Valet - Not Found Error

if you have installed composer global package using sudo than file owner will be root, in server.php it is checking file owner and then setting VALET_HOME_PATH, you need to change owner ship of all global packages or laravel/valet only. better to change for all so next time composer update or install without sudo.

cd ~/.composer/

sudo chown -R $(whoami) vendor

now happy development with valet.

04 Jun
2 years ago

umefarooq left a reply on Laravel Can Not Open SQLite Database

this could be helpful for any body i was also facing same problem, if you are setting database configuration through .env file than need to commented DB_DATABASE config which is null with fresh install of laravel, database config in .env file like this

DB_CONNECTION=sqlite
#DB_HOST=127.0.0.1
#DB_PORT=null
#DB_DATABASE=null
#DB_USERNAME=null
#DB_PASSWORD=null
19 May
3 years ago

umefarooq left a reply on Valet Not Starting Giving "Valet Requires Brew To Be Installed On Your Mac." Message

yes thanks its work perfect i found slash in path.

umefarooq started a new conversation Valet Not Starting Giving "Valet Requires Brew To Be Installed On Your Mac."

Hi i want to try valet, my mac machine has brew, valet and php7 installed, when i try to start valet it give me the following message

Valet requires Brew to be installed on your Mac.

i search in valet repository for this message following code check brew path

    echo 'Valet requires Brew to be installed on your Mac.';
    exit(1);
} ```
in terminal run which brew command and i am getting following path

```/usr/local/bin//brew```
i don't understand why this double slash i appearing in path because of that in valet code path string is not matching.
17 Apr
3 years ago

umefarooq left a reply on Tokenmismatchexception Laravel 5.1

@mehany on any form submission i am getting this

umefarooq started a new conversation Tokenmismatchexception Laravel 5.1

This question is asked over and over but my problems is not solved i have googled and check all threads on my local machine everything working fine recently i have changed my production server and i am getting this problem i have windows server not able to figure out how to solve this problem, for form creation i am using laravelcollective/html package which is creating _token field, even i have created manually same problem. i have also tried php artisan cache:clear
command.

23 Jan
3 years ago

umefarooq left a reply on Excel File Upload Validation Mime Type Error.

it dose not worked for me, i created custom rule to check only excel file. i think there is some problem with mime validation rule or im doing something wrong, i have tried txt mime it is not validating txt file.

21 Jan
3 years ago

umefarooq started a new conversation Excel File Upload Validation Mime Type Error.

Hi i am trying to upload excel file i am also validating excel file but facing problem with excel file mime type validation here is code i am using for file

'file' => 'required|mimes:xls,xlsx' i don't know how laravel is checking mime, where i can set missing mimes for excel files in laravel.

18 Jan
3 years ago

umefarooq started a new conversation Where To Load Site Setting Save In Database Service Provider Or Middle Wares?

Where to load site settings saved in database service provider or middle wares so it will be available for application as global settings. looking for good idea also.

14 Jan
3 years ago

umefarooq started a new conversation [New Update] Example On How To Use Multiple Locales In Your Laravel 5 Website

Hi, just added some more functionality to the script, right now this script adding locales all routes, if you want to skip locales for some routes like admin or private i have created pull request for this here is link for pull request

https://github.com/Marwelln/laravel-multiple-locales/pull/4

How you can skip locales

First Step

download my repo code, if my request is not pulled in original repo.

https://github.com/umefarooq/laravel-multiple-locales

2nd Step

open config/app.php find skip_locales or add config than add first segment of url you want to skip like following

 'skip_locales' => ['admin','other'] 

now you can call URL with and without locales

www.yoursite.com/admin //without locale

and 

www.yoursite.com/en/page-slug //with locale

All credit gose to @Marwelln author of this code here is link for original post https://laracasts.com/discuss/channels/tips/example-on-how-to-use-multiple-locales-in-your-laravel-5-website?page=1

03 Jan
3 years ago

umefarooq left a reply on How I Can Restrict A Role To Access Complete Controller Or Module Not Specific Method?

thanks @desloc middleware is good idea to check authorization.

02 Jan
3 years ago

umefarooq started a new conversation How I Can Restrict A Role To Access Complete Controller Or Module Not Specific Method?

Hi i need to know is it possible Laravel ACL to restrict a role from a complete controller or module? not a specific method of controller (edit, create, store, update or delete)

30 Dec
3 years ago

umefarooq left a reply on The --plain Option In Php Artisan Help Is Missing.

yes now in laravel 5.2 make:controller command creates plan controller, if you want to make resource controller you need to add --resource

php artisan make:controller ControllerName //create plain controller

php artisan make:controller ControllerName --resource

06 Sep
3 years ago

umefarooq left a reply on The Connection Was Reset On Laravel 5 Login Or Register Page.

well fond the problem, problem with blade comments, i have removed the commented code from view and its work fine

umefarooq started a new conversation The Connection Was Reset On Laravel 5 Login Or Register Page.

Hi, i am using laravel 5.1 authentication on my development server its work fine but on my production server both login and register pages give error The connection was reset, as there is no php/ laravel error not able to figure out where is the problem.

02 Sep
3 years ago

umefarooq left a reply on How To Validate Form On Post Route With Form Request

i have two databases on sqlsrv and 2nd mysql, first form will send student id fetch record from sqlsrv and fill 2nd form, 2nd form saving information in mysql db with data from sqlsrv db, i want to validate 2nd form but route is post. form request validation send back only get response if validation fails.

umefarooq started a new conversation How To Validate Form On Post Route With Form Request

Hi i have two forms, first form is posting user id to 2nd form which is fetching data and filling 2nd form, problem with Form request validation on 2nd form, here are my routes

Route::get('/','StudentController@index'); //form 1
Route::post('info/find','StudentController@findStudent'); // form2

on Form 2 after Form request validation test its trying to redirect back to as get request but i have post data in it, how i can redirect back to form 2 with post data and post response.

31 Aug
3 years ago

umefarooq left a reply on Dynamic Sliders Problem

@halmerdavila little improvement in code no need to put if block keep it simple just need to use php tags

<? $class="item active" ?>
 <div class="carousel-inner" role="listbox">
        @for($i=0;$i<count($banners);$i++)
        <div class="{{ $class }}">
                    <img src=" " alt="" title="" width="100%" />
            </div>
           <? $class="item" ?>
        @endfor
  </div>