PhoeniX5

PhoeniX5

Member Since 3 Months Ago

Experience Points 1,180
Experience Level 1

3,820 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 0
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.

15 May
5 days ago

PhoeniX5 left a reply on DataTables Error

@DEVFREY - This is it:

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.1.3",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "5.8.*",
        "laravel/tinker": "^1.0",
        "yajra/laravel-datatables": "^1.0",
        "yajra/laravel-datatables-oracle": "^7.0"
    },
    "require-dev": {
        "beyondcode/laravel-dump-server": "^1.0",
        "filp/whoops": "^2.0",
        "fzaninotto/faker": "^1.4",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^2.0",
        "phpunit/phpunit": "^7.5"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\": "app/"
        },
        "classmap": [
            "database/seeds",
            "database/factories"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }
}

PhoeniX5 left a reply on DataTables Error

@SUJANCSE - Still same error

PhoeniX5 left a reply on DataTables Error

@SUJANCSE - I get this error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - yajra/laravel-datatables 1.0.x-dev requires yajra/laravel-datatables-buttons 4.* -> satisfiable

PhoeniX5 left a reply on DataTables Error

@DEVFREY - I am getting this error :

[InvalidArgumentException]
  Could not find package yajra/laravel-datatables in a version matching ^9.0

PhoeniX5 left a reply on DataTables Error

@RESPECT - I tried every version from ^1.0 to ^8.0

PhoeniX5 started a new conversation DataTables Error

Hello, I am trying to install DataTables in my laravel app but I keep getting errors while running this command :

composer require yajra/laravel-datatables-oracle:^8.0

Error:

$ composer require yajra/laravel-datatables-oracle:^8.0
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: remove laravel/framework v5.8.10
    - Conclusion: don't install laravel/framework v5.8.10
    - yajra/laravel-datatables-oracle 8.0.x-dev requires illuminate/view 5.4.*|5.5.*|5.6.*|5.7.* -> satisfiable by illuminate/view[5.4.x-dev,...

Installation failed, reverting ./composer.json to its original content.
25 Apr
3 weeks ago

PhoeniX5 started a new conversation Laravel Error "array_map(): Argument #2 Should Be An Array"

I am developing an application but i keep getting this error:

"array_map(): Argument #2 should be an array"

Here is my code: Controller:

function magasin(Request $request) {
        $validation = Validator::make($request->all(), [
            'article'     =>  $request->get('article'),
            'qte_s'       =>  $request->get('qte_s'),
            //'qte_e'       =>  $request->get('qte_e'),
        ]);

        $error_array = array();
        $success_output = '';
        if ($validation->fails())
        {
            foreach($validation->messages()->getMessages() as $field_name => $messages)
            {
                $error_array[] = $messages;
            }
        }
        else
        {
            $mag = new Magasin([
                'article'     =>  $request->get('article'),
                'qte_s'       =>  $request->get('qte_s'),
                //'qte_e'       =>  $request->get('qte_e')
            ]);
            $mag->save();
            $success_output = '<div class="alert alert-success">Produit ajouté</div>';
        }
        $output = array(
            'error'     =>  $error_array,
            'success'   =>  $success_output
        );
        echo json_encode($output);
    }

View:

<script type="text/javascript">
        $(document).ready(function() {

    $(document).on('click', '#pub', function(){
        $('#magModal').modal('show');
    });

    $('#mag_form').on('submit', function(event){
    event.preventDefault();
    var form_data = $(this).serialize();
    $.ajax({
        url:"{{ route('validate.magasin') }}",
        method:"get",
        data:form_data,
        dataType:"json",
        success:function(data)
        {
            if(data.error.length > 0)
            {
                var error_html = '';
                for(var count = 0; count < data.error.length; count++)
                {
                    error_html += '<div class="alert alert-danger">'+data.error[count]+'</div>';
                }
                $('#form_output').html(error_html);
            }
            else
            {
                $('#form_output').html(data.success);
                $('#mag_form')[0].reset();
            }
        }
    })
    });
});
    </script>
19 Mar
2 months ago

PhoeniX5 started a new conversation 404 Not Found The Resource Requested Could Not Be Found On This Server!

I need to host my Laravel app in internet so far the only working url is the first one without the controller if i try access /support i or any other url with controller i get :

404
Not Found
The resource requested could not be found on this server!

Here is my code :

Route::get('/', function(){ //only working url
    return view('Demo.support');
});

Route::get('/support', '[email protected]');

Route::get('/support/postdata', '[email protected]')->name('support.postdata');

Route::get('/support/requete', '[email protected]')->name('support.requete');

Route::get('/support/getetat', '[email protected]')->name('support.getetat');

Route::post('/support/checklogin', '[email protected]');
Route::get('admin/logout', '[email protected]');
Route::get('/admin', '[email protected]');

Route::get('admin/getRequete', '[email protected]')->name('admin.getRequete');

Route::get('admin/reponse', '[email protected]')->name('admin.reponse');

Route::get('admin/fetchdata', '[email protected]')->name('admin.fetchdata');

Is there a way to transform all the other urls like the first one without loosing anything ?

PhoeniX5 left a reply on Namespace Declaration Statement Has To Be The Very First Statement Or After Any Declare Call In The Script

@MANELGAVALDA - <?php is the first thing in the page, here is a part of code from beginning :

<?php

namespace App\Http\Controllers;

use Validator;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
use App\Demo;
use DB;
use Auth;
use Yajra\DataTables\DataTables;

class DemoController extends Controller
{
    public $code;
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        return view('demo.support');
    }

PhoeniX5 started a new conversation Namespace Declaration Statement Has To Be The Very First Statement Or After Any Declare Call In The Script

I need to host my Laravel app in internet when running it in local server it works without issues but in the internet server it keeps saying :

Namespace declaration statement has to be the very first statement or after any declare call in the script

This is my namespace :

<?php
namespace App\Http\Controllers;

14 Mar
2 months ago

PhoeniX5 left a reply on How To Display Views When Hosting A Laravel Project On Internet ?

@PARDEEPKUMAR - I checked everything seems fine, but i keep getting error HTTP 500.

PhoeniX5 left a reply on How To Display Views When Hosting A Laravel Project On Internet ?

@JLRDW - I need to host my app in a shared server, so I downloaded my app in the server then I imported the database but i have no views, how do I display my views as in a local server (127.0.0.1:8000/support) as (subdomain/support), like in the route file ?

13 Mar
2 months ago

PhoeniX5 started a new conversation How To Access Views When Hosting A Laravel Project ?

I need to access to my view folder and files instead of the index file when hosting my Laravel app, so far i have access to the index files but i am not using it, so i need to access to views in ressources folder.

12 Mar
2 months ago

PhoeniX5 left a reply on How To Use A Custom Form Validator In Laravel ?

@STEREOH - I need to make each field required (*), how to trigger each field for that to display each error message on top of it's specific field instead ?

PhoeniX5 started a new conversation How To Use A Custom Form Validator In Laravel

I need to use Laravel validator to show only a single meesage if something wrong because in my case i have form with 7 fields that are all required, when using Laravel validator on submit it shows an error message for every field which is 7 messages in total, that's making my view a mess, if this is not possible with Laravel validator, which custom validator should I use and how do I use it ?

07 Mar
2 months ago

PhoeniX5 left a reply on Laravel Wrong Data Display From MySql Table !

@MUNAZZIL - Thank you for your reply, i updated my code please take a look.

PhoeniX5 left a reply on Laravel Wrong Data Display From MySql Table !

@MUNAZZIL - Thank you for your reply, but the field name is 'id' in MySql table, i updated my code.

PhoeniX5 left a reply on Laravel Wrong Data Display From MySql Table !

@TGRASSMEE - @TGRASSMEE - I mean I am getting random numbers display in field id that does not correspond to what i have in my MySql table.

PhoeniX5 started a new conversation Laravel Wrong Data Display From MySql Table !

I need to display data from MySql table in Laravel view but it keeps showing a wrong data inside the field id, the other fields are displayed correctly, here is code :

View :

$(document).ready(function() {
                    $('#req_table').DataTable({
                        "processing": true,
                        "serverSide": true,
                        "ajax": "{{ route('admin.getRequete') }}",
                    "columns":[                    
                            { "data": "id" },
                            { "data": "nom" },
                            { "data": "prenom"},
                            { "data": "reference"},
                            { "data": "n_mac" },
                            { "data": "n_serie" },
                            { "data": "probleme_survenu"},
                            { "data": "plus_infos"},
                            { "data": "reponse"},
                            { "data": "action"}
                        ]           
                    });...

Controller :

function getRequete()
    {
        $reqs = Demo::select('id', 'nom', 'prenom', 'reference', 'n_mac', 'n_serie', 'probleme_survenu', 'plus_infos', 'reponse');
        $result = DataTables::of($reqs)  
                ->addColumn('action', function($req){
                    return '<a href="#" class="btn btn-xs btn-primary req_reponse" id="'.$req->ID.'"><i class="glyphicon glyphicon-edit"></i> Modifier la réponse</a>';})
                ->make(true);
        return $result ;
    }

Root :

Route::get('admin/getRequete', '[email protected]')->name('admin.getRequete');
06 Mar
2 months ago

PhoeniX5 left a reply on Laravel Update MySQL Table Failure

@MVD - I only had to rename ID to id thank you.

PhoeniX5 left a reply on Laravel Update MySQL Table Failure

@MVD - ``` array:11 [▼ "ID" => "4WI37m0NsFXndTsJ" "nom" => "x" "prenom" => "x" "reference" => "x" "n_mac" => "x" "n_serie" => "x" "probleme_survenu" => "x55555555555555555555555555555555555555sfsdfsdfsssssssssssssssssssssssssssssssssssssssssssss" "plus_infos" => "" "reponse" => "" "created_at" => "2019-02-28 10:13:31" "updated_at" => "2019-02-28 10:13:31" ]

PhoeniX5 left a reply on Laravel Update MySQL Table Failure

@MVD - When doing :

dd($request->get('ID'));

The correct id is displayed and also dd($student->get('reponse')); is displayed correctly.

PhoeniX5 left a reply on How To Edit Laravel Field Validation Message ?

@SCREENBEETLE - The error is gone but a new one appear, this is my code : Controller :

use App\Http\Requests\CustomRequest;
...
public function reponse(CustomRequest $request)
    {
        $validation = Validator::make($request->all(), [
            'reponse' => 'required',
        ]);
        
        $error_array = array();
        $success_output = '';
        if ($validation->fails())
        {
            foreach ($validation->messages()->getMessages() as $field_name => $messages)
            {
                $error_array[] = $messages; 
            }
        }
...

CustomeRequest class :

<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class CustomRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'reponse' => 'required',
        ];
    }

    public function messages()
    {
        return [
            'reponse.required' => 'The reponse field is required etc',
        ];
    }
}

View :

$('#rep_form').on('submit', function(event){
                        event.preventDefault();
                        var form_data = $(this).serialize();        
                        $.ajax({
                            url:"{{ route('admin.reponse') }}",
                            method:"GET",
                            data:form_data,
                            dataType:"json",
                            success:function(data)
                            {
                                if(data.error.length > 0)
                                {
                                    var error_html = '';
                                    for(var count = 0; count < data.error.length; count++)
                                    {
                                        error_html += '<div class="alert alert-danger">'+data.error[count]+'</div>';
                                    }
                                    $('#form_output').html(error_html);
                                }
                                else
                                {
                                    $('#form_output').html(data.success);
                                    $('#rep_form')[0].reset();
                                    $('#req_table').DataTable().ajax.reload();
                                }
                            }
                        })
                    });

Please tell me how can i use this properly ?

PhoeniX5 left a reply on Laravel Update MySQL Table Failure

@TGRASSMEE - I already checked all, i cant find why the update does not affect the veiw or the MySql table!

PhoeniX5 left a reply on How To Edit Laravel Field Validation Message ?

@SCREENBEETLE - How do i include it ? it keeps saying :

"Class Http\Requests\CustomRequest does not exist"

PhoeniX5 left a reply on Laravel Update MySQL Table Failure

@TGRASSMEE - Just one, but i dont think this is the issue as you see in the code i posted

PhoeniX5 left a reply on Laravel Update MySQL Table Failure

@TGRASSMEE - Dont know what happens because i dont know how to use tinker!

PhoeniX5 left a reply on Laravel Update MySQL Table Failure

No, it's not affecting the database just the success message is displayed

PhoeniX5 left a reply on How To Edit Laravel Field Validation Message ?

@SCREENBEETLE - Thank you for your reply, your example is clear but how can i apply it to my context, here the code that i want to change the displayed validation message :

public function reponse(Request $request)
    {
        $validation = Validator::make($request->all(), [
            'reponse' => 'required',
        ]);
        
        $error_array = array();
        $success_output = '';
        if ($validation->fails())
        {
            foreach ($validation->messages()->getMessages() as $field_name => $messages)
            {
                $error_array[] = $messages; 
            }
        }

PhoeniX5 left a reply on Laravel Update MySQL Table Failure

@MVD - Please can you check the update section of my code

05 Mar
2 months ago

PhoeniX5 started a new conversation Laravel Update MySQL Table Failure

I need to update MySQL table from Laravel view but when I submit the update the success message is displayed but nothing is updated inside MySQL table or the view, the console log does not show any error and dd($student->get('reponse')) is correct. Here is the code:

Controller:

public function reponse(Request $request)
    {
        $validation = Validator::make($request->all(), [
            'reponse' => 'required',
        ]);

        $error_array = array();
        $success_output = '';
        if ($validation->fails())
        {
            foreach ($validation->messages()->getMessages() as $field_name => $messages)
            {
                $error_array[] = $messages; 
            }
        }
        else
        {
            $student = Demo::find($request->get('ID'));
            $student->reponse = $request->get('reponse');
            $student->save();
            $success_output = '<div class="alert alert-success">Data Updated</div>';
        }

        $output = array(
            'error'     =>  $error_array,
            'success'   =>  $success_output
        );
        echo json_encode($output);
    }

View :

$('#student_form').on('submit', function(event){
        event.preventDefault();
        var form_data = $(this).serialize();
        console.log($('#reponse').val());
        $.ajax({
            url:"{{ route('admin.reponse') }}",
            method:"GET",
            data:form_data,
            dataType:"json",
            success:function(data)
            {
                if(data.error.length > 0)
                {
                    var error_html = '';
                    for(var count = 0; count < data.error.length; count++)
                    {
                        error_html += '<div class="alert alert-danger">'+data.error[count]+'</div>';
                    }
                    $('#form_output').html(error_html);
                }
                else
                {
                    $('#form_output').html(data.success);
                    $('#student_form')[0].reset();
                    $('#req_table').DataTable().ajax.reload();
                }
            }
        })
    });

PhoeniX5 left a reply on How To Edit Laravel Field Validation Message ?

I need to update MySQL table from Laravel view but when I submit the update the success message is displayed but nothing is updated inside MySQL table or the view, the console log does not show any error and dd($student->get('reponse')) is showing correctly. Here is the code:

Controller:

public function reponse(Request $request)
    {
        $validation = Validator::make($request->all(), [
            'reponse' => 'required',
        ]);

        $error_array = array();
        $success_output = '';
        if ($validation->fails())
        {
            foreach ($validation->messages()->getMessages() as $field_name => $messages)
            {
                $error_array[] = $messages; 
            }
        }
        else
        {
            $student = Demo::find($request->get('ID'));
            $student->reponse = $request->get('reponse');
            $student->save();
            $success_output = '<div class="alert alert-success">Data Updated</div>';
        }

        $output = array(
            'error'     =>  $error_array,
            'success'   =>  $success_output
        );
        echo json_encode($output);
    }

View :

$('#student_form').on('submit', function(event){
        event.preventDefault();
        var form_data = $(this).serialize();
        console.log($('#reponse').val());
        $.ajax({
            url:"{{ route('admin.reponse') }}",
            method:"GET",
            data:form_data,
            dataType:"json",
            success:function(data)
            {
                if(data.error.length > 0)
                {
                    var error_html = '';
                    for(var count = 0; count < data.error.length; count++)
                    {
                        error_html += '<div class="alert alert-danger">'+data.error[count]+'</div>';
                    }
                    $('#form_output').html(error_html);
                }
                else
                {
                    $('#form_output').html(data.success);
                    $('#student_form')[0].reset();
                    $('#req_table').DataTable().ajax.reload();
                }
            }
        })
    });
28 Feb
2 months ago

PhoeniX5 left a reply on How To Edit Laravel Field Validation Message ?

@SCREENBEETLE - Please tell me how do i call this method i will appreciate if you give me a full working example.

PhoeniX5 started a new conversation How To Edit Laravel Field Validation Message ?

I need to edit field validation message :

The ... field is required.
The... must be at least 10 characters.

into another messages.

27 Feb
2 months ago

PhoeniX5 left a reply on How To Format Json Data In Laravel?

@TYKUS - There are only two view files the first one redirect to this above view by :

window.location="/support/requete";

I need to get the $id content in the above view on loading.

PhoeniX5 left a reply on How To Format Json Data In Laravel?

@TYKUS - This is the view file :

<!DOCTYPE html>
<html>
    <head>
        <title>Support</title>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        <style type="text/css">
            .box{
                width:600px;
                margin:0 auto;
                border:1px solid #ccc;
            }
        </style>
    </head>
    <body>
        <br />
        <div class="container box">
            <br />
            <!--img src={{ asset('LOGO.bmp') }}-->
            <h3 align="center">....................</h3>
            <br />
            <p align="center">................</p>    
            <br />
            <p id="code"></p>
        </div>
    </body>
</html>
        <script>
            $(document).ready(function() {   
                $.ajax({
                    type: 'GET',
                    url:"{{ route('support.requete') }}",
                    success: function (response) {
                        console.log(response.data);
                        $('#code').append(response.data);
                    }
                });
            });
        </script>

Controller :

function requete()
    {
        $id = '................................'
            ."  ".session('id').'';
        session()->flush();
        return view('Demo.requete', compact('id'))->render();   
    }

Console log:

undefined

The $id content is not being added to the view.

PhoeniX5 left a reply on How To Format Json Data In Laravel?

@TYKUS - No the page is already builded in html and css, i just need to add the random string from the controller to a span in the page and applie some css on it, but nothing keep happening inside the view when i console log response it shows the entire code of the view and if i do :

$('#code').append(response);

It keeps looping and showing the view many times inside the page.

PhoeniX5 left a reply on How To Format Json Data In Laravel?

@TYKUS - I get the same result when i do :

return view('Demo.requete', compact('id'))->render();  

PhoeniX5 left a reply on How To Format Json Data In Laravel?

@TYKUS - A loop of the entire view.

PhoeniX5 left a reply on How To Format Json Data In Laravel?

So far this is the result :

Controller :

function requete()
    {
        $res = 'Veuillez enregistrer ce code car il identifiera votre demande.'
            ."  ".session('id').'';
        session()->flush();
        return view('Demo.requete', compact('id'));   
    }

View :

$(document).ready(function() {   
                $.ajax({
                    type: 'GET',
                    url:"{{ route('support.requete') }}",
                    success: function (response) {
                        console.log(response.data);
                        $('#code').append(response.data);
                    }
                });
            });

The console log shows : undefined and nothing happens inside the view.

26 Feb
2 months ago

PhoeniX5 left a reply on How To Format Json Data In Laravel?

@DARIUSIII - I need to display data from controller i tried to send it via this method but Nothing happened :

return view('Demo.requete', compact('id'));

https://laracasts.com/discuss/channels/laravel/how-to-pass-data-to-view

PhoeniX5 left a reply on Global Variable In Laravel

@TYKUS - Please tell me exactly how and where do i flush or flash the session because

session()->flush()

didn't work.

PhoeniX5 left a reply on Global Variable In Laravel

@TYKUS - Thank you it works, but instead of a static value i get a fixed value, can you explain to me when the value changes ?

PhoeniX5 left a reply on Global Variable In Laravel

@AJITHLAL - Still having different values, is there a way to make id static ?

PhoeniX5 left a reply on Global Variable In Laravel

@TYKUS - I am working on two views the variable is created in the first view and i just need to display it in the second view, is there a way to keep the same value between the two veiws, i am using the same controller class for both views.

PhoeniX5 left a reply on Global Variable In Laravel

@TYKUS - Is there a way to do this for two HTTP requests ?

PhoeniX5 left a reply on Global Variable In Laravel

Is there a way to do this for two HTTP requests ?

PhoeniX5 left a reply on Global Variable In Laravel

@TYKUS - I get diffirent values in each call i need to get the same value in each function, the random value must be created only once in a single form validation.

PhoeniX5 left a reply on Global Variable In Laravel

@NASH - How do i get the variable value in controller functions ?