nazar1987

nazar1987

developer at ministry of health iraq

Baghdad

Member Since 4 Years Ago

Experience Points 6,765
Experience
Level
Lessons Completed 7
Lessons
Completed
Best Reply Awards 0
Best Answer
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.

01 Oct
1 month ago

nazar1987 left a reply on Laravel Html Error

the most problem appear hear

                        @foreach($institutions_structure_id as $key => $value)
                            @if($key == 0 )
                                <div class="form-group">
                                    <label class="col-md-2 control-label">{{(int)$value}}</label>
                                    <div class="col-md-4">
                                        {!! Form::select('institution_id[]', $institutions  , old('institution_id.0') ,                 array('id' => 'institution_id_'.(int)$value, 'class' => 'form-control')) !!}
                                    </div>
                                </div>
                            @else
                                <div class="form-group">
                                    <label class="col-md-2 control-label">{{(int)$value}}</label>
                                    <div class="col-md-4">
                                        <select name="institution_id[]" id="institution_id_{{(int)$value}}" class="form-control">
                                            <option value="0">يرجى الأختيار</option>
                                        </select>
                                    </div>
                                </div>
                            @endif
                        @endforeach


nazar1987 started a new conversation Laravel Html Error

i have problem in html the form design in few time not work correctly and i not know what the problem this form https://ibb.co/k9uKOe and few time appear https://ibb.co/gDoeOe and this https://ibb.co/hL04pK

22 Sep
1 month ago

nazar1987 left a reply on Section Inside Include

yes i have @extend in another page

@yield('style')
@include('partial-page')
@yield('content')
<h1> I partial  page. </h1>
@section('style')
    any think
@endsection
@extend('template')
@section('content')
    <h1>content page</h1>
@endsection

nazar1987 started a new conversation Section Inside Include

how can i add section inside include like this ~ @yield('style') @include('partial-page') ~ in partial page i add section ~

I partial page.

@section('style') any think @endsection ~
18 Sep
1 month ago

nazar1987 started a new conversation Add Item To Cache

i have collect save in cache i want add new object to the collect is there solution ???

16 Sep
2 months ago

nazar1987 started a new conversation Mysqldump Is Not Recognized

i try use laravel package to backup database when try backup this error appear use Artisa::call 'mysqldump' is not recognized as an internal or external command, operable program or batch file. i user windows and add mysql path in windows environment and when run the command in cmd work correctly

10 Sep
2 months ago

nazar1987 left a reply on Memory Usage

@Thyrosis for example i show user login in your simple math 50000 request take 600KB is this right ?? how big web application work if you have more than 50000 request at same time ?

nazar1987 started a new conversation Memory Usage

i used "barryvdh/laravel-debugbar" to check memory usage i found user take 12MB when login how many memory space if 50000 user login at same time ???

15 Aug
3 months ago

nazar1987 left a reply on Dynamic Config

@crnkovic can send me link to how laravel wok or life cycle to load it in memory and what the part load in memory in each request ?

nazar1987 left a reply on Dynamic Config

@newbie360 haha no i just try it in controller not user service provider i not know how config/*.php load I thought the config value load in cache . not load in every request

nazar1987 left a reply on Dynamic Config

@crnkovic is there another solution because i think it not professional code to set all config in each request

nazar1987 left a reply on Dynamic Config

@Cronix do you mean i must set config value in each request ?

nazar1987 left a reply on Dynamic Config

in the config/app.php

    'timezone' => 'UTC';

and i try change it in controller function by

        config(['app.timezone' => 'America/Chicago']);
        echo config('app.timezone');

it echo America/Chicago but when try get value in another controller function by

    echo config('app.timezone');

it echo UTC

nazar1987 left a reply on Dynamic Config

@tykus i try it in controller for just test to change timezone in runtime but when change timezone and try call another function the timezone return to default

nazar1987 left a reply on Dynamic Config

@tykus i try

~config(['app.timezone' => 'America/Chicago']);~

it but the change not wok in whole i use laravel 5.4 and PHP 5.6 and work in localhost

nazar1987 left a reply on Dynamic Config

my friend @crnkovic i try Config::set() but not work or not change in whole application

nazar1987 left a reply on Dynamic Config

@crnkovic i try use set config but not work

nazar1987 started a new conversation Dynamic Config

how can load dynamic config like debug or timezone or another config from database ?

13 Aug
3 months ago

nazar1987 left a reply on Dynamic NavBar

In my mind professional solution it used low server resource and running faster and the code can used it in more place in application i hope you corrected my mind

nazar1987 left a reply on Manage Site Settings

@tykus can give me professional solution ??

nazar1987 left a reply on Dynamic NavBar

is this professional solution ???

nazar1987 left a reply on Dynamic NavBar

@tykus i want store it in session to prevent the script generate navebar run in each page load

nazar1987 left a reply on Dynamic NavBar

yes but what problem if i after generate the navbar store it in session ?? i want know what the professional code ?

nazar1987 left a reply on Dynamic NavBar

i use laravel 5.4 that not support View Composer

nazar1987 started a new conversation Dynamic NavBar

i have dynamic NavBar i generate it from database that dependence on user permission what the best solution to load it from database just at first time when user login and where can i save it in session or another place ??

nazar1987 started a new conversation Manage Site Settings

i want example or package to manage site settings like site name or footer copyright or show hide part from web site and thanks for all

15 Jun
2 years ago

nazar1987 started a new conversation How Update First Selected Row By Quert Builder

~ $data = DB::table('users') ->join('chat_messages', 'chat_messages.from_user_id', '=', 'users.id') ->select('chat_messages.id','users.first_name','users.second_name', 'users.last_name','chat_messages.message','chat_messages.from_user_id','chat_messages.to_user_id','chat_messages.read') ->where('chat_messages.from_user_id','=',1 ) ->where('chat_messages.to_user_id','=', 2 ) ->where('chat_messages.read','=', 0 ) ->first() ->update(array('read' => 1)); ~

14 Jan
2 years ago

nazar1987 left a reply on CPU And RAM Usage

@ohffs thank you my friend but this function not work

Call to undefined function App\Http\Controllers\sys_getloadavg()

nazar1987 left a reply on CPU And RAM Usage

@ohffs how can use sys_getloadavg() function in laravel ???

13 Jan
2 years ago

nazar1987 left a reply on CPU And RAM Usage

@jekinney how can install this package in laravel ??

nazar1987 left a reply on CPU And RAM Usage

@bashy yes i want server info

nazar1987 left a reply on CPU And RAM Usage

@bashy No i want get info about the server not for process

nazar1987 started a new conversation CPU And RAM Usage

how can get info about CPU and RAM Usage or how can use phpSysInfo in laravel ???

19 Nov
2 years ago

nazar1987 left a reply on Preventing Multiple Submits

i have same problem :'(

08 Oct
3 years ago

nazar1987 left a reply on User Activity

UP

nazar1987 left a reply on User Activity

UP

nazar1987 left a reply on Ajax Post Request Not Returning Download Of PDF

what you used to build PDF report ???

nazar1987 started a new conversation User Activity

how register all user activity ( read,edit,delete,insert ) when login to logout

24 Aug
3 years ago

nazar1987 left a reply on Pagination With Union In Laravel

@thomaskim yes use laravel 5.1 i want example

nazar1987 left a reply on Pagination With Union In Laravel

what 's problem in my question ??

nazar1987 started a new conversation Pagination With Union In Laravel

i have problem when try pagination tow union table

$page = Input::get('page', 1);
$paginate = 10;
 
$members = DB::table("members")
            ->select("id", "first_name", "last_name", "email", "created_at")
            ->where("site_id", $id);
$users = DB::table("users")
            ->select("id", "first_name", "last_name", "email", "created_at")
            ->where("site_id", $id)
            ->union($members)
            ->get();
 
$slice = array_slice($users, $paginate * ($page - 1), $paginate);
$data = Paginator::make($slice, count($users), $paginate);
 
return View::make('your_view_name',compact('data'));

this error appear

Class Illuminate\Support\Facades\Paginator does not exist
16 Aug
3 years ago

nazar1987 left a reply on Romanbican/roles Middleware

this problem when user not have permission access

PermissionDeniedException in VerifyPermission.php line 42:
You don't have a required ['validateoffers'] permission.

nazar1987 started a new conversation Romanbican/roles Middleware

hi every one i have problem in middleware i use in route

Route::get('post/{id}', ['middleware' => 'permission:needitems', function ($id) {
    echo "nazar";
}]);

and in Middleware

<?php

namespace App\Http\Middleware;

use Closure;

class PermissionMiddleware
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next, $permission)
    {
      $user = User::find(Auth::id());
      if (!$user->can($permission))
          return "Not Have Permission To Access";
      }

      return $next($request);
    }
}

09 Aug
3 years ago

nazar1987 started a new conversation Jasper Report

hi every one i work with jasper report inside laravel it work correctly in localhost with windows 7 but when try it in godady hosting not work is there help

24 Jul
3 years ago

nazar1987 left a reply on Old Input For Update Form

@RachidLaasri in the edit form must first i put the data from database

        <div class="form-group">
          <label for="n_code">National Code</label>
          <input type="text" name="n_code" class="form-control" value="{{ $ncode->n_code }}"/>
        </div>

and then how can keep old input ???

nazar1987 started a new conversation Old Input For Update Form

hi every one how can i work with the old input in the update form

23 Jul
3 years ago

nazar1987 left a reply on Jasper Report

@Ruffles thank you very very much it work correctly

nazar1987 left a reply on Jasper Report

i try it

Non-static method JasperPHP\JasperPHP::process() should not be called statically, assuming $this from incompatible context