laravel-4 Questions
7
Is there a built-in way to do something like this?
Let's say I have a search-page that has a few parameters in the URL:
example.com/search?term=foo&type=user
A link on that page would redir...
9
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=root
DB_PASSWORD=
this is my configuration for laravel 5.4
but php artisan migrate is not working and have error
...
Brachiopod asked 21/1, 2018 at 11:57
2
Solved
I have a few blade template files which I want to include in my view dynamically based on the permissions of current user stored in session. Below is the code I've written:
@foreach (Config::get(...
Toplevel asked 15/1, 2015 at 12:5
3
Solved
What is difference between these two in laravel
$input = Input::get();
And
$input = Input::all();
And which one i should prefer.
8
Solved
This is a repeat question - eg:
Laravel 4 migrations - class not found
However, I've tried every solution (from every forum I could find) and cannot figure this out.
Scenario
I created a Laravel...
Aloke asked 3/4, 2014 at 6:53
3
Solved
How can I create a Mediumblob within the Laravel schema builder ?
In the docs it says :
$table->binary('data'); // BLOB equivalent to the table
But I need a MediumBlob otherwise the images g...
7
1st question:
I've inserted the localization in many types of texts and things, but I don't know how to import it into in the following forms:
{{ Form::label('name', 'here') }}
{{ Form::text('...
Worthington asked 13/8, 2013 at 23:10
7
Solved
I have a complex query created by a few conditions, and I would like to get the final SQL query from the builder object is about to execute. Can I do that?
7
Solved
I'm a Laravel newbie. I have just installed some 3rd party packages and I would like to integrate Twitter bootstrap into my script. Is there any way to do it, short of going into each package and a...
9
Solved
Is there is a way of referencing another field when specifying the exists validation rule in Laravel? I want to be able to say that input a must exist in table a, input b must exist in table b AND ...
Carny asked 30/9, 2014 at 12:54
7
Solved
I'm developing a Laravel 4 app that will make the same CRUD operations on my data set available through a JSON REST API and a Web UI. It seems that to prevent breaking the DRY principle that my UI ...
13
Solved
Brief:
I am trying to union 2 tables recipes and posts then add ->paginate(5) to the queries.
But for some reason I get this error:
Cardinality violation: 1222 The used SELECT statements ha...
Default asked 16/8, 2014 at 8:45
4
Solved
I have this jquery
$(".waitingTime .button").click(function () {
alert("Ema");
});
I have a a tag like this:
<a href="{{ URL::to('restaurants/20') }}"></a>
Can I do the same hre...
Personable asked 22/6, 2014 at 17:22
6
Solved
I got several .sql files of countries, states and cities of the world from github. How can I run them with Laravel's seed files to populate those tables in my database?
Ruben asked 22/5, 2016 at 0:44
7
Solved
Get a problem with update using query builder on laravel 5. I've tried to disabled the updated_at but keep failing.
Here is my code:
$query = StockLog::where('stock_id', $id)->whereBetween('c...
5
Solved
I developed an API to show a pop up message when the page loaded.
Not all the pages use the pop up API. For example, if the user go to the show($id) page, that doesn't required the pop up api to f...
Memorial asked 1/8, 2014 at 10:41
3
Solved
Please have a look at the following code:
$msgs = Message::where(function($query) use ($start,$end){
$query->whereBetween('created_at', array($start, $end));
})->orderBy('created_at', 'DE...
7
Solved
Having one Eloquent model, is it possible to get all its relationships and their type at runtime?
I've tried taking a look at ReflectionClass, but I couldn't find anything useful for this scenari...
4
Solved
How do you add/update a specific package using composer? I'm using the latest Laravel as well not sure if it matters but anything that can help to determine the answer.
I have also tried the follo...
Variolous asked 12/6, 2014 at 3:6
4
Solved
When defining a route in Laravel 4 is it possible to define multiple URI paths within the same route?
presently i do the following:
Route::get('/', 'DashboardController@index');
Route::get('/das...
7
When you create a new column in a table you can use the ->after('column name') to dictate where it goes. How can I create a migration that re-orders the columns in the right order I want?
3
Solved
I'm trying to understand how the below function works from Laravel 4.2 in the BcryptHasher.php file:
/**
* Hash the given value.
*
* @param string $value
* @param array $options
* @return str...
Bedplate asked 18/8, 2015 at 23:21
10
Solved
How do we set a custom port for test server?
Normally when we do
php artisan serve
the folder gets served as :
localhost:8000
How do could we access one folder as:
localhost:8080
I want ...
11
I send a png image file to controller in base64 via Ajax. I've already test and sure that controller has received id but still can't save it to public folder.
Here is my controller
public functio...
6
Solved
How Can I pass the variable (stock.id) return from Ajax response to the route to generate the url to edit a stock
$.ajax({
url: 'sectors/stocks/' + $(this).data('sector-id'),
dataType:'json',...
Babyblueeyes asked 24/12, 2014 at 9:7
1 Next >
© 2022 - 2025 — McMap. All rights reserved.