Flex

Flex

Member Since 2 Years Ago

Experience Points 10,890
Experience Level 3

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

18 Mar
4 days ago

Flex started a new conversation How To Customize Laravel Auth Login And Registration System?

I am using Laravel 5.7 and hope to use Auth command to create Login and Registration system. but by default with Auth command laravel make register system and login with email field. but this time in my case I do not need email and I need NIC field with registration and login system. in laravel documentation there is Username Customization but I can not understand that. any body can explain simple step to customize Auth command username to NIC.

Thanks.

17 Mar
5 days ago

Flex left a reply on Not Loading Vue File In Laravel 5.7 Application

@malakhaltsev I thing I have done all correctly but not working

Flex started a new conversation Not Loading Vue File In Laravel 5.7 Application

working with laravel 5.7 and vue.js my app.js file is as following,

require('./bootstrap');
window.Vue = require('vue');
import VueRouter from 'vue-router'
Vue.use(VueRouter)

let routes = [
    { path: '/dashboard', component: require('./components/Dashboard.vue') },
    { path: '/profile', component: require('./components/Profile.vue') }
  ]

  const router = new VueRouter({
    routes // short for `routes: routes`
  })
Vue.component('example-component', require('./components/ExampleComponent.vue').default);
const app = new Vue({
    el: '#app',
    router
});

and I need link following link with vue file

<router-link to="/dashboard" class="nav-link">

and Dashboard.vue file is like this

<template>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card card-default">
                    <div class="card-header">Dashboard Component</div>

                    <div class="card-body">
                        I'm an example component.
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        mounted() {
            console.log('Component mounted.')
        }
    }
</script>

but when I click above link to dashbord.vue file it is not loading. only display url in the address bar. my console error is as following [Vue warn]: Failed to mount component: template or render function not defined. found in --->

how can fix this error

13 Mar
1 week ago

Flex left a reply on Not Working Php Artisan Serve Command?

@diegoaurino did its but not success

Flex left a reply on Not Working Php Artisan Serve Command?

@gorakhyadav no any error on the command prompt

Flex left a reply on Not Working Php Artisan Serve Command?

@diegoaurino yes I have install php correctly. and My other laravel projects are working fine. this problem is only with this project.

Flex left a reply on Not Working Php Artisan Serve Command?

@snapey my laravel project name is api. and I have developing some api with laravel and above mentioned my api.php file in routes folder. not tinker command working same result.

Flex left a reply on Not Working Php Artisan Serve Command?

@munazzil my api.php is

<?php

use Illuminate\Http\Request;
Use App\Article;

Route::get('articles', function() {
    // If the Content-Type and Accept headers are set to 'application/json', 
    // this will return a JSON structure. This will be cleaned up later.
    return Article::all();
});
 
Route::get('articles/{id}', function($id) {
    return Article::find($id);
});

Route::post('articles', function(Request $request) {
    return Article::create($request->all);
});

Route::put('articles/{id}', function(Request $request, $id) {
    $article = Article::findOrFail($id);
    $article->update($request->all());

    return $article;
});

Route::delete('articles/{id}', function($id) {
    Article::find($id)->delete();

    return 204;
});

Route::get('articles', '[email protected]');
Route::get('articles/{article}', '[email protected]');
Route::post('articles', '[email protected]');
Route::put('articles/{article}', '[email protected]');
Route::delete('articles/{article}', '[email protected]');

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});

Flex left a reply on Not Working Php Artisan Serve Command?

@munazzil not success same result going back to project root

Flex started a new conversation Not Working Php Artisan Serve Command?

I am working with laravel 5.7 and now I need start server with command php artisan serve in my terminal. but when I type abov command and enter my command prompt is going back to my project root like C:Users\soft\Desktop\laravel\api this was working fine but suddenly occured this problem. how can I fix this problem?

Thanks.

12 Mar
1 week ago

Flex started a new conversation What Is The Best Way To Send Email Administrator?

I have develop simple taxi reservation system using Laravel 5.7. it is working steps are as following,

1.customer make a reservation.

2.then customer should logged with the email and confirm the reservation by clicking email link.

3.then data table saved reservation information and make verify field as 1 from 0 to identify as verified customer. and other table saved generated token

now I need to send as an email with reservation customer information to admin when customer click conformation email link. I need simple method. what is best way queue or scheduler or any other method. I need validate if customer click again verification link to stop sending email again to admin.

23 Feb
3 weeks ago

Flex left a reply on Why Did Not Working Laravel Middleware CORS With Vue JS

@ejdelmonico this is My kernel.php

<?php

namespace App\Http;

use Illuminate\Foundation\Http\Kernel as HttpKernel;

class Kernel extends HttpKernel
{
    /**
     * The application's global HTTP middleware stack.
     *
     * These middleware are run during every request to your application.
     *
     * @var array
     */
    protected $middleware = [
        \App\Http\Middleware\CheckForMaintenanceMode::class,
        
        \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
        \App\Http\Middleware\TrimStrings::class,
        \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
        \App\Http\Middleware\TrustProxies::class,
        \Barryvdh\Cors\HandleCors::class,
        
            
    ];

    /**
     * The application's route middleware groups.
     *
     * @var array
     */
    protected $middlewareGroups = [
        'web' => [
            \App\Http\Middleware\EncryptCookies::class,
            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
            \Illuminate\Session\Middleware\StartSession::class,
            // \Illuminate\Session\Middleware\AuthenticateSession::class,
            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
            \App\Http\Middleware\VerifyCsrfToken::class,
            \Illuminate\Routing\Middleware\SubstituteBindings::class,
        ],

        'api' => [
            'throttle:60,1',
            'bindings',
        ],
    ];

    /**
     * The application's route middleware.
     *
     * These middleware may be assigned to groups or used individually.
     *
     * @var array
     */
    protected $routeMiddleware = [
        'auth' => \App\Http\Middleware\Authenticate::class,
        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
        'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
        'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
        'can' => \Illuminate\Auth\Middleware\Authorize::class,
        'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
        'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
        'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
        'cors' => \Barryvdh\Cors\HandleCors::class, 
    ];

    /**
     * The priority-sorted list of middleware.
     *
     * This forces non-global middleware to always be in the given order.
     *
     * @var array
     */
    protected $middlewarePriority = [
        \Illuminate\Session\Middleware\StartSession::class,
        \Illuminate\View\Middleware\ShareErrorsFromSession::class,
        \App\Http\Middleware\Authenticate::class,
        \Illuminate\Session\Middleware\AuthenticateSession::class,
        \Illuminate\Routing\Middleware\SubstituteBindings::class,
        \Illuminate\Auth\Middleware\Authorize::class,
    ];
}

is this correct?

15 Feb
1 month ago

Flex started a new conversation Why Did Not Working Laravel Middleware CORS With Vue JS

working with Laravel 5.7 as backend and Vue JS as frontend. so, I need send http request fron Vue to Laravel backend. so, I used Laravel CORS package to using github link as following https://github.com/barryvdh/laravel-cors but it is not sucess and (not pass data to table fron vue). and my console error is `Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8000/api/addItem. (Reason: CORS request did not succeed).

how can fix this error?`

08 Feb
1 month ago
07 Feb
1 month ago

Flex started a new conversation What Are Commanly Used APIs With Laravel?

what are common using third party APIs with Laravel please mention there specific services also.

28 Jan
1 month ago

Flex started a new conversation Failed To Open Stream: No Such File Or Directory In PHP

working with plain php. and I have php files in My includes folder like this, newclass.int.php

<?php
class NewClass extends ParentClass {
    }
?>

parentclass.int.php

<?php

class ParentClass{
    public $name = "Hey There!";
}
?>

and index.php like this,

<?php
include 'includes/parentclass.int.php';
include 'includes/newclass.int.php';
$object = new NewClass;
?>


<html>
<head>
<title>oop php</title>
</head>
<body>
<?php
echo $object->name;
?>

</body>
</html>

but I got following error msg when running the server, include(includes/parentclass.int.php): failed to open stream: No such file or directory in C:\wamp64\www\ooptest\index.php on line 2

Warning: include(includes/newclass.int.php): failed to open stream: No such file or directory in C:\wamp64\www\ooptest\index.php on line 3

Fatal error: Uncaught Error: Class 'NewClass' not found in C:\wamp64\www\ooptest\index.php on line 4

Error: Class 'NewClass' not found in C:\wamp64\www\ooptest\index.php on line 4

19 Jan
2 months ago

Flex left a reply on How Can Print Data On Table Related To Login User?

@vilfago how can set one to one relationship? may I use relationship on both models Student and User

Flex left a reply on How Can Print Data On Table Related To Login User?

@vilfago No any error yes logged user filled his/her data

Flex started a new conversation How Can Print Data On Table Related To Login User?

Hi, I have following table like students


id  name  email                 telephone         user_id
 1  anne   [email protected]   07115550096         5

user_id is related to id of users table.

now I need print all name, email and telephone data witch related to login user id. I have following controller function for that

public function index()
    {
        $students = Student::personal()->get();
        return view('students.index')->withStudents($students);
    }

and Student Model

 public function scopePersonal($query)
{
     return $query->where('user_id', Auth::user()->id);
      
}

using above syntax I am printing data as following,

{{Auth::user()->name}}
{{Auth::user()->email}}
{{Auth::user()->telephone}}

but it is not printing telephone value

18 Jan
2 months ago

Flex left a reply on What Is RESTFUL API?

@hdsavani I did your tutorials. but when I test

GET, URL:http://localhost:8000/oauth/token

it is get following error msg There was an error connecting to GET,%20URL:http://localhost:8000/oauth/token.

what is the problem? may I should insert data to tables?

15 Jan
2 months ago

Flex left a reply on How To Add Laravel Project To Github?

I got this error please make sure you have correct access right

Flex left a reply on How To Add Laravel Project To Github?

@manelgavalda may I use cmd after install git?

Flex started a new conversation How To Add Laravel Project To Github?

I am very new to github. now I have created new account in github. then, Please guide me how can I add My Laravel project on new repository in github?

10 Jan
2 months ago

Flex started a new conversation What Are The Differents Between RESTful And SOAP Based Web Services?

what are the differents between RESTful and SOAP based web services? give some examples?

09 Jan
2 months ago

Flex left a reply on What Is RESTFUL API?

@sergiu17 @schemeza Then what is JWT and witch is relationship with restfull api and web services?

Flex started a new conversation What Is RESTFUL API?

hello, I need to understand what is restful api and , important of apis and some examples of restful api. and some body know good tutorials links how to develop restful apis using laravel please post links here.

Thanks.

22 Dec
3 months ago

Flex started a new conversation 1/1) BadMethodCallException Method [validator] Does Not Exist.

using laravel 5.6 and in my controller I have following code,

$input = $request->all();
        $validator = $this->validator($input);

        if ($validator->passes()){
            $booking = $this->create($input)->toArray();
            $booking['link'] = str_random(30);

            DB::table('activations')->insert(['id_user' => $booking['id'], 'token' => $booking['link']]);
            Mail::send('mail.activation', $booking, function($message) use ($booking) {
                $message->to($booking['email']);

                $message->subject('acxian.com - Activation Code');
            });

but when I try submit button following error is occurring,

1/1) BadMethodCallException

Method [validator] does not exist.

how can I fix this?

14 Dec
3 months ago

Flex started a new conversation How Can Count Table Column Unique Values In Laravel 5.6?

working with laravel 5.6 and mysql. I have following table name as projects

id  name    type  
1   tuna        bio
2   nhye    IT
3   hyuj        bio
4   tour        IT
5   ghyt        commerce

I need count type column values which are unique values. as an example in above table I need count values 3 because there are three different values like bio, IT and commerce. how can I do this?

04 Dec
3 months ago

Flex left a reply on Why Did Not Update Category Name And Image In Laravel?

@munazzil when I use route:list I can see only

App\Http\Controllers\[email protected]

with

GET|HEAD

Flex left a reply on Why Did Not Update Category Name And Image In Laravel?

@realrandyallen clear it but still not success here

03 Dec
3 months ago

Flex left a reply on Why Did Not Update Category Name And Image In Laravel?

@realrandyallen did it same thing here when I update some thing here my url will like this

http://localhost:8000/category/update/19?_method=put&description=boatmk&image=&remove=0    //boatmk is updated category name

Flex started a new conversation Why Did Not Update Category Name And Image In Laravel?

working with Laravel 5.6 and MySQL. I am going to update categoryname and image in my categories table using the following controller function?

public function update(Request $request, $id)
{

    if ($request->isMethod('get'))
        return view('categories.form', ['image' => Category::find($id)]);

    else {
        $rules = [
            'categoryname' => 'required',
        ];
        $this->validate($request, $rules);
        $image = Category::find($id);
        if ($request->hasFile('image')) {
            $dir = 'images/';
            if ($image->image != '' && File::exists($dir . $image->image))
                File::delete($dir . $image->image);
            $extension = strtolower($request->file('image')->getClientOriginalExtension());
            $fileName = str_random() . '.' . $extension;
            $request->file('image')->move($dir, $fileName);
            $image->categoryimage = $fileName;
        } elseif ($request->remove == 1 && File::exists('images/' . $image->image)) {
            File::delete('images/' . $image->post_image);
            $image->categoryimage = null;
        }
    }
    $image->categoryname = $request->description;
    $image->save();
    return redirect()->route('categories.index');
}

and route

Route::match(['get', 'put'], 'category/update/{id}', '[email protected]');

and edit form

@if(isset($image))
        <form method="PUT" action="http://localhost:8000/category/update/{{$image->id}}" enctype="multipart/form-data">

        <input type="hidden" name="_method" value="put">

<label for="description" class="col-form-label col-md-3 col-lg-2">Description</label>
                <div class="col-md-8">
                    <input class="form-control" autofocus placeholder="Description" name="description" type="text" id="description" value="{{ isset($image) ? $image->categoryname : '' }}">



 <label for="image" class="col-form-label col-md-3">Image</label>
                    <div class="col-md-5">
                        <img id="preview"
                             src="{{asset((isset($image) && $image->categoryimage!='')?'images/'.$image->categoryimage:'images/noimage.png')}}"
                             height="200px" width="200px"/>
                        <input class="form-control" style="display:none" name="image" type="file" id="image" name="_token" value="{{ csrf_token() }}">
                        <br/>
                        <a href="javascript:changeProfile();">Add Image</a> |
                        <a style="color: red" href="javascript:removeImage()">Remove</a>
                        <input type="hidden" style="display: none" value="0" name="remove" id="remove">

but when I try to update data it is not updating. only refresh to the same page. no, any error. how can I fix this problem?

Flex left a reply on Why Did Not Update Category Name And Image In Laravel?

can you any one tell me how can I put my $image variable id in my form action

http://localhost:8000/update/{id}

Flex left a reply on Why Did Not Update Category Name And Image In Laravel?

@sumbria it is not sucess it is change my edit form to new category post page

Flex started a new conversation Why Did Not Update Category Name And Image In Laravel?

I have following form to post and update category name and images

 <h1>{{isset($image)?'Edit':'New'}}  Category</h1>

            <hr/>
            @if(isset($image))
    <form method="PUT" action="http://localhost:8000/update" enctype="multipart/form-data">
    <input type="hidden" name="_method" value="put">
@else
   <form method="POST" action="http://localhost:8000/create" accept-charset="UTF-8" enctype="multipart/form-data"><input name="_token" type="hidden" value="1LLYc0D1spmVSFMboLDjGM9MR4O5APVwng7giejx">
                                {{csrf_field()}}
@endif
                            
                                <div class="form-group row required{{ $errors->has('description') ? ' has-error' : '' }}">
                <label for="description" class="col-form-label col-md-3 col-lg-2">Description</label>
                <div class="col-md-8">
                    <input class="form-control" autofocus placeholder="Description" name="description" type="text" id="description" value="{{ isset($image) ? $image->categoryname : '' }}">
                                         @if ($errors->has('description'))
                    <span class="help-block">{{ $errors->first('description') }}</span>
                @endif
                    
                </div> 

            </div>

                        <div class="form-group row{{ $errors->has('image') ? ' has-error' : '' }}">
                <label for="image" class="col-form-label col-md-3">Image</label>
                <div class="col-md-5">
                    <img id="preview"
                         src="{{asset((isset($image) && $image->categoryimage!='')?'images/'.$image->categoryimage:'images/noimage.png')}}"
                         height="200px" width="200px"/>
                    <input class="form-control" style="display:none" name="image" type="file" id="image" name="_token" value="{{ csrf_token() }}">
                    <br/>
                    <a href="javascript:changeProfile();">Add Image</a> |
                    <a style="color: red" href="javascript:removeImage()">Remove</a>
                    <input type="hidden" style="display: none" value="0" name="remove" id="remove">
                     @if ($errors->has('image'))
                    <span class="help-block">{{ $errors->first('image') }}</span>
                @endif
                </div>
                
            </div>

and my update controller function for category is

 public function update(Request $request, $id)
    {

          if ($request->isMethod('get'))
            return view('categories.form', ['image' => Category::find($id)]);

         else {
            $rules = [
                'categoryname' => 'required',
            ];
            $this->validate($request, $rules);
        $image = Category::find($id);
            if ($request->hasFile('image')) {
                $dir = 'images/';
                if ($image->image != '' && File::exists($dir . $image->image))
                    File::delete($dir . $image->image);
                $extension = strtolower($request->file('image')->getClientOriginalExtension());
                $fileName = str_random() . '.' . $extension;
                $request->file('image')->move($dir, $fileName);
                $image->categoryimage = $fileName;
            } elseif ($request->remove == 1 && File::exists('images/' . $image->image)) {
                File::delete('images/' . $image->post_image);
                $image->categoryimage = null;
            }
        }
            $image->categoryname = $request->description;
            $image->save();
            return redirect()->route('categories.index');
    }

and route

Route::match(['get', 'put'], 'update/{id}', '[email protected]');

but when I go to edit form and give name or image and try to update it is occured following error msg

 (1/1) NotFoundHttpException 

how can I fix this problem?

30 Nov
3 months ago

Flex started a new conversation How To Count Table Column Data And Display In Google Bar Charts In Laravel?

working with Laravel 5.6 and mysql db. an I have table as vehicles like this?

id  name  type  
1   nhy   car
2   juy   van
3   nhy   car
4   kiu   bus
5   hyu   van
etc

currently I am displaying all vehicles numbers using following controller function,

public function vehiclebarchart()
    {
    $chart = Charts::database(Vehicle::all(), 'bar', 'google')
    ->elementLabel("Total")
    ->GroupByDay();
        return view('summarys.vehiclebarchart',compact('chart'));
    }

but now I need display each vehicles types in bar charts like car,van,bus... with counting then, how can I configure controller sql query like above query

$chart = Charts::database(Vehicle::all(), 'bar', 'google')

for my new requirements?

29 Nov
3 months ago

Flex started a new conversation How To Update Braintree Payment Dependency In Laravel 5.6?

I am working with Laravel 5.6 and using Braintree payment gateway sand box. but when I update my php version it is encounters some error. like this

Function create_function() is deprecated

in Util.php line 206

at HandleExceptions->handleError(8192, 'Function create_function() is deprecated', 'C:\Users\mala\Desktop\ddddd\vendor\braintree\braintree_php\lib\Braintree\Util.php', 206, array('string' => 'client_token', 'delimiter' => '-', 'callbacks' => array()))in Util.php line 206

so, I am using braintree vertion, ``` "oureastudios/laravel5-braintree": "dev-master" `` but when I search in internet most people suggested update braintree dependancy to v3.26.0. then My problem is how can I update My current braintree to above new vertion?

and I do not need update my laravel version

27 Nov
3 months ago

Flex left a reply on How To Count And Get Values Table Categoryname And Display Google Charts In Laravel 5

@signar accually google map called as following way in blade file,

@extends('layouts.app')
@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">Google Chart Demo</div>

<div class="panel-body">
                    {!! $chart->html() !!}
                </div>
            </div>
        </div>
    </div>
</div>
{!! Charts::scripts() !!}
{!! $chart->script() !!}
@endsection

Flex left a reply on How To Count And Get Values Table Categoryname And Display Google Charts In Laravel 5

@signar it id occured following error

Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR)

Flex started a new conversation How To Count And Get Values Table Categoryname And Display Google Charts In Laravel 5

working with laravel 5.6 and mysql db. I have table named as vehicles in my application like this, id name categoryname 1 lki Car 2 kio Van 3 hytg Car 4 hyu Truck 5 htg Van etc

Now I am going count numbers of each categoryname as Car 2 Van 2 Truck 1

and display Google Chart using consoletvs/charts. I have one example to displaying existing all users in controller as,

class BarChartController extends Controller
{
    public function index()
    {
    $chart = Charts::database(Vehicle::all(), 'bar', 'google')
    ->elementLabel("Total")
    ->GroupByMonth();
        return view('charts.bar',compact('chart'));
    }
}

so, now I need new controller function to show above my requirement (show each categorynames in charts) how can I configure controller for it?

24 Nov
3 months ago

Flex left a reply on What About New Look @laracast.com

@shamsweb yes I have same problem here?

19 Nov
4 months ago

Flex left a reply on How To Regex Validate Telephone Number?

@d9705996 actually I do not need international numbers. I need only my above conditions

Flex left a reply on How To Regex Validate Telephone Number?

@thyrosis now I using this one,

'telephone'    => 'required|regex:/(0)[0-9]{9}/'

all validation working without one that means I can enter more than 10 numbers with above validation